rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] Two remote hosts


From: chuck odonnell
Subject: Re: [rdiff-backup-users] Two remote hosts
Date: Fri, 29 Jul 2011 12:30:43 -0400

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]