Changes

From Amahi Wiki
Jump to: navigation, search
77 bytes added ,  15:02, 5 March 2013
m
no edit summary
* Save the "rsnapshot.conf" file.
 
===Automate Backups ===
 
A "root" user "cron job" could be created to perform backups.
 
:crontab -l > cronjobs
 
:nano cronjobs
 
add to this file for running rsnapshot and a weekly email report on rsnapshot:
 
:0 */4 * * * /usr/bin/rsnapshot hourly
 
:30 23 * * * /usr/bin/rsnapshot daily
 
:00 23 * * 1 /usr/bin/rsnapshot weekly
 
:30 22 1 * * /usr/bin/rsnapshot monthly
 
Save the file
 
:crontab cronjobs
 
Rsnapshot should now be operational.
=== Test the Configuration Changes ===
:chmod 744 rsnapreport.pl
===Automate Backups === A "root" user "cron job" could be created Add the following to perform backups. :crontab -l > cronjobs :nano cronjobs add to this file for running rsnapshot and a weekly email report on rsnapshot:
:0 */4 * * * /usr/bin/rsnapshot hourly 2>&1 | /root/rsnapreport.pl > /root/rsnapreport
 
:30 23 * * * /usr/bin/rsnapshot daily
 
:00 23 * * 1 /usr/bin/rsnapshot weekly
 
:30 22 1 * * /usr/bin/rsnapshot monthly
:00 22 * * 6 /usr/bin/rsnapshot du >> /root/rsnapreport | nail –r "somereturnadress@provider.com" -s"HDA backup report" -S smtp=smtp.yourprovider.com youremail@provider.com < /root/rsnapreport
 
Save the file
 
:crontab cronjobs
 
Rsnapshot should now be operational.
===Make your backups available on clients (READ ONLY)===