SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
confirmation of Backup by rdiffbackup
Author Message
Post confirmation of Backup by rdiffbackup 
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....


Arun

Post confirmation of Backup by rdiffbackup 
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.


Arun

--
Adrian Klaver
adrian.klaver < at > gmail.com

_______________________________________________
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 confirmation of Backup by rdiffbackup 
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
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post confirmation of Backup by rdiffbackup 
On Fri, 9 Dec 2011 11:01:43 +0530
Arun Shrimali <arun.reso < at > gmail.com> 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....

I don't know if it'll be helpful for you, but I use a Nagios plugin to
monitor the time since the last successful backup, which gives me
WARNING/CRITICAL states if there hasn't been a successful backup for a
while.

The code is available on GitHub:

https://github.com/bigpresh/nagios_rdiffbackup_check

If you use Nagios for other stuff already, it may be useful Smile

Cheers

Dave P

_______________________________________________
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 confirmation of Backup by rdiffbackup 
+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 Wink (since I
have never seen it yet live...).

best,
vdm
.

On 9. 12. 2011 15:27, cao < at > bus.net 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
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
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post confirmation of Backup by rdiffbackup 
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 Wink (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


Post confirmation of Backup by rdiffbackup 
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

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
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>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 Wink (since I
have never seen it yet live...).

best,
vdm
.

On 9. 12. 2011 15:27, cao < at > bus.net 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
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
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
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
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Post 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 Wink (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


Post confirmation of Backup by rdiffbackup 
Hi,

additionally to getting the log by e-mail, make sure to also get notified if the backup did *not run at all*. To illustrate what I mean, let me tell you where I learned that this is necessary:

At that job every night I got lots of mail from various crons on the 10-or-so servers. I went through them every morning, and made sure to fix any issues they made me aware of. The thing is: you (or at least me) don't notice a missing e-mail, or at least not for a couple of days.
So one day someone wanted to have something restored, but I couldn't connect to the backup server. When I went to the server room and connected a monitor to the backup server, it was hanging there with a kernel panic. It turned out to be faulty memory. The kernel panic had occured 4 days before, and nobody had noticed.
This wouldn't have happened with proper monitoring, e.g. running munin or something like that. Since we didn't have this infrastructure in place, my quick fix was to put a script on one of the main servers that got backed up by that backup server, and ran it every few hours via cron. It would check whether the backup server had connected, and if not, it would send an e-mail.

Patrick.

cao < at > bus.net 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
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL:
http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

--
Sent from my phone.

_______________________________________________
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