Changes

From Amahi Wiki
Jump to: navigation, search
33 bytes added ,  00:56, 6 March 2013
m
===Email reporting===
* To email a report of backups:
<blockquote>
{{Code|cp /usr/share/doc/rsnapshot*/utils/rsnapreport.pl /root
chmod 744 rsnapreport.pl}}</blockquote>
'''*''' above indicates an rsnapshot version number
for email reporting on your backups: :cp /usr/share/doc/rsnapshot*/utils/rsnapreport.pl /root <= '''*''' indicates an rsnapshot version number :chmod 744 rsnapreport.pl  Add the following to crontab for a weekly email report on rsnapshot:<br>
:0 */4 * * * /usr/bin/rsnapshot hourly 2>&1 | /root/rsnapreport.pl > /root/rsnapreport
 
: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