On Sunday 10 January 2010 4:25:41 am Chris G wrote: > On Sun, Jan 10, 2010 at 09:50:39AM +1000, Gavin wrote: > > Hi all > > > > I back up a directory to a remote system by rdiff-backup and I'm > > doing it as periodic cron jobs. How can I find out that a back-up session > > failed? I saw an entry at the FAQ that told about two > > current_mirror_XXXX files with different dates. Is it enough to > > check this situation? > > Any output (i.e. an error or warning) from rdiff-backup will be > E-Mailed by cron to the owner of the cron job. So, if rdiff-backup > runs totally successfully you will get no output, if it fails you will > get an error message. > > If the owner of the cron job isn't a user who reads mail then you can > set the environment variable MAILTO in the crontab to send the mail > where you want, i.e. add a line like the following to your crontab:- > > mailto=ga...@wherever.gavin,reads.mail > > If you want to get confirmation that the crontab has been run then you > can put simple 'echo' lines in the script that runs rdiff-backup. They > will then appear as mail sent to the above MAILTO user. > > (All the above applies to cron on modern Linux, if your rdiff-backup > is running on something else then read the man pages for cron and > crontab to confirm it's the same)
The other option is to increase the verbosity(vN) level. It runs at a default of 3, I found a level of 4 or 5 works well. 4 shows something happening, 5 shows the files that are being updated/added. -- Adrian Klaver adrian.kla...@gmail.com _______________________________________________ rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki