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

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

Re: [rdiff-backup-users] rdiff-backup limit time range


From: John Wesorick
Subject: Re: [rdiff-backup-users] rdiff-backup limit time range
Date: Thu, 15 Aug 2013 13:35:05 -0400

You could write a wrapper shell script around rdiff-backup like this to start it:

#!/bin/bash

if [ -n pidof rdiff-backup ] ; then
    kill -CONT $(pidof rdiff-backup)
else
    rdiff-backup
fi

and then at 6 AM run a cron job with a script like this:

#!/bin/bash

if [ -n pidof rdiff-backup ] ; then
    kill -STOP $(pidof rdiff-backup)
fi

The first script sees if rdiff-backup is running, and if it is, it uses kill to unpause it (if if is already unpaused, this has no effect/error), otherwise it just fires up rdiff-backup. The second script just sees if rdiff-backup is running, and if so, pauses it.

John Wesorick
IT Systems Engineer | Riders Discount
866.931.6644 x852 | www.RidersDiscount.com 
image.png image.png
Deal of the Day


On Thu, Aug 15, 2013 at 1:17 PM, Greg Troxel <address@hidden> wrote:
Eric Gendron <address@hidden> writes:

> So how to limit backup working time ?

Limit the area being backed up.

> Or how to interrupt a working backup that will continue next night?

rdiff-backup can't do this.

So

  rsync the entire remote system to shadow tree, incrementally when you
  can, and run rdiff-backup locally

or

  go learn about bup (not obviously ok to use right now, but I find it
  interesting)



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


reply via email to

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