SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Two remote hosts
Author Message
Post Two remote hosts 
Hi,

If I have 3 hosts A,B,C. Is it possible for A for start a backup from B
to C without the data passing A?

/

Felix


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Two remote hosts 
On 2011-07-29 14:03, Felix Rios wrote:
Hi,

If I have 3 hosts A,B,C. Is it possible for A for start a backup from B
to C without the data passing A?


something like:

A:~$ ssh B rdiff-backup <dir> C::<dir>

Add proper authentication

N.
.

/

Felix


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Two remote hosts 
Hi,

Ok, the problem is that i want to have the control from A. For example
if something goes wrong and has to be resumed.

ssh should not return before the end of the command with err redirected
to your console. Alternatively you launch a screen on B and start the
command from the screen.

N.


On Fri, 2011-07-29 at 14:08 +0200, Nicolas Jungers wrote:
On 2011-07-29 14:03, Felix Rios wrote:
Hi,

If I have 3 hosts A,B,C. Is it possible for A for start a backup from B
to C without the data passing A?


something like:

A:~$ ssh B rdiff-backup <dir> C::<dir>

Add proper authentication

N.
.

/

Felix


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Two remote hosts 
On Fri, Jul 29, 2011 at 02:03:06PM +0200, Felix Rios wrote:
Hi,

If I have 3 hosts A,B,C. Is it possible for A for start a backup from B
to C without the data passing A?

[...]

Ok, the problem is that i want to have the control from A. For example
if something goes wrong and has to be resumed.

It is difficult to offer further suggestions without better
understanding what you are trying to do. I thought Nicolas offered a
good response based on what you asked.

If you are looking for something more along the lines of starting the
backup manually from A, but then letting it run unattended on B with
notification when it completes:

A$ ssh B
B$ nohup rdiff-backup ... | mail -s "rdiff output" felix.rios < at > diino.net &
B$ exit
A$

Are you asking about unattended startup? What exactly are you trying
to do?

Best,

Chuck

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Two remote hosts 
On 29.7.2011 15.03, Felix Rios wrote:
If I have 3 hosts A,B,C. Is it possible for A for start a backup from B
to C without the data passing A?

I would try writing a backupscript on B, then lauch it from A to run in
background. You would not get instant error reporting, but you could
arrange that in some other way, for example emails, or simply write log
on B.

ssh B "sh my-rdiff-script &"

You might have to use nohup

ssh B "nohup sh my-rdiff-script &"

- Jussi

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post Two remote hosts 
On Fri, Jul 29, 2011 at 04:38:25PM +0200, Felix Rios wrote:
Thanks for all good suggestions,

I think the main problem seems to be how to handle the logs at from B
and C. I want to have all the logging from B and C available at A. Maybe
syslog could be usable here in some way.


Ah, okay. In that case I would probably initiate rdiff-backup on B
with cron, and use a script like this (untested!):

On B:

#!/bin/sh
rdiff-backup \
--print-statistics \
C::/ /m/C 2>&1 | ssh A 'cat - >> /var/log/rdiff-backup.log'

And in B's crontab:

30 3 * * * lockf -s -t 0 /var/run/rdiff-backup.lock /usr/local/whatever/rdiff_backup_daily.sh

The lockf(1) call is to prevent accidental overlap on long running
backups. Perhaps your backups are fast and you don't need that.

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB