
confirmation of Backup by rdiffbackup
thanks for details howto ....I will go for it.
Arun
On Sat, Dec 10, 2011 at 11:48 AM, Marian 'VooDooMan' Meravy <vdm < at > receptar.sk ([email]vdm < at > receptar.sk[/email])> wrote:
Hi,
crontab -e
opens the default editor for your crontab. as an example, mine is:
0 4 * * * backup.sh
I am using vixie-cron, so before this crontab line I have as well:
PATH=/bin:/usr/bin:/home/my_account_name/bin
above means that each day at 4 AM it will run "backup.sh", I have this
script in directory /home/my_account_name/bin/
(see
http://en.wikipedia.org/wiki/Crontab )
my "backup.sh" is rather complicated, but basically it something like:
#!/bin/sh
rdiff-backup --print-statistics /path/from/ user < at > example.com::/path/to/
2>&1 ; echo "RC = $?"
which means it will backup /path/from/ to remote machine
example.com
under account name "user" (via ssh) and into /path/to/ on that machine,
and after backup all up echo out the return code. Since cron daemon is
executing these commands, all "echo out"/output from rdiff-backup will
get mailed to root account of the machine the crontab is installed. If
you are using vixie-cron, you can change mail address via:
MAILTO=myaddress < at > example.com ([email]myaddress < at > example.com[/email])
or just
MAILTO=myaddress
(the latter will send mail to "myaddress" account on the same machine it
runs). So in case of vixie-cron (extensions) crontab (via "crontab -e")
will look like:
MAILTO=myaddress < at > example.com ([email]myaddress < at > example.com[/email])
PATH=/bin:/usr/bin:/home/my_account_name/bin
0 4 * * * backup.sh
best,
vdm
.
On 10. 12. 2011 6:00, Arun Shrimali wrote:
Dear All,
Kindly suggest, how should I configure "cron email and for
--print-statistics"
Arun
On Fri, Dec 9, 2011 at 10:19 PM, Marian 'VooDooMan' Meravy
<vdm < at > receptar.sk ([email]vdm < at > receptar.sk[/email])>wrote:
+1 for cron email and for --print-statistics as well, I have no problems
with these.
of course, mentioned nagios solution might be interesting too, but I
will try it when I will have extra time to configure nagios

(since I
have never seen it yet live...).
best,
vdm
.
On 9. 12. 2011 15:27, cao < at > bus.net ([email]cao < at > bus.net[/email]) wrote:
On Fri, Dec 09, 2011 at 06:12:17AM -0800, Adrian Klaver wrote:
On Thursday, December 08, 2011 9:31:43 pm Arun Shrimali wrote:
Dear All,
I have configured rdiffbackup for my server, which is working
perfectly for
daily incremental remote backup.
But to confirm that the backup has been done successfully, I have to
go to
backup server and check the file /rdiff-backup-data/backup.log
Is there any other way (through e-mail) to confirm that backup has been
done successfully....
Don't know if this would work for you but I have several backups
running via
cron jobs and I get an email though cron. The amount of information is
controllable through the -vX switch where X is an integer 0-9 indicating
increasing verbosity.
+1 for cron email. Except I use --print-statistics
_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org ([email]rdiff-backup-users < at > nongnu.org[/email])
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 ([email]rdiff-backup-users < at > nongnu.org[/email])
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 ([email]rdiff-backup-users < at > nongnu.org[/email])
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 ([email]rdiff-backup-users < at > nongnu.org[/email])
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL:
http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki