SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Cron and Rdiff-backup
Author Message
Post Cron and Rdiff-backup 
I am trying to use rdiff-backup from cron on an Ubuntu 10.04 server.  I have a script with this

  rdiff-backup /home/dan/data /media/sdb1/data
rdiff-backup /home/dan/data2 /media/sda1/data




crontab looks like this:



* 21 * * * sh /home/dan/backupscript.sh


Here is the error I get from cron


Fatal Error:  It appears that a previous rdiff-backup session with process id 10778 is still running....




running only the first line (commenting out the second) with the same results.  If I manually run the script (with no comments) it runs smoothly with no errors.  I don't understand what cron is doing to make this fail.


  
--
\Dan Nugent
CCA Technologies

Post Cron and Rdiff-backup 
On Wed, May 25, 2011 at 06:32:40PM -0500, Dan Nugent wrote:
I am trying to use rdiff-backup from cron on an Ubuntu 10.04 server. I have a
script with this


rdiff-backup /home/dan/data /media/sdb1/data
rdiff-backup /home/dan/data2 /media/sda1/data


crontab looks like this:

* 21 * * * sh /home/dan/backupscript.sh


Specify a value in the minute slot, e.g.,

0 21 * * * sh /home/dan/backupscript.sh

Otherwise your script will run every time cron is invoked during the
hour of 9:00 PM.

On a side note, I use lockf to prevent overlap on long running backups
(sometimes our backups go into gigabytes over a network line, so it is
possible for them to occasionally run for more than 24 hours).

e.g.,

0 3 * * * lockf -s -t 0 /var/run/rdiff-backup.lock /path/to/rdiff.sh

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 Cron and Rdiff-backup 
On 05/25/2011 06:32 PM, Dan Nugent wrote:
I am trying to use rdiff-backup from cron on an Ubuntu 10.04 server. I have
a script with this


rdiff-backup /home/dan/data /media/sdb1/data
rdiff-backup /home/dan/data2 /media/sda1/data


crontab looks like this:

* 21 * * * sh /home/dan/backupscript.sh

Here is the error I get from cron

Fatal Error: It appears that a previous rdiff-backup session with process
id 10778 is still running....

That crontab entry means "Run this command _every_minute_ during hour 21".
If you want the backup to run at the start of that hour, you want

0 21 * * * sh /home/dan/backupscript.sh

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.


_______________________________________________
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