My Profile Photo

Ionut Gavrilut


DevOps Enthusiast | Linux System Administrator | Certified Jenkins Engineer


Send report with rsnapshot (rsnapreport)

If use rsnapshot tool for your backup strategy, maybe you want to receive a mail report. For this need, there is a perl script provided by rsnapshot, in /usr/share/doc/rsnapshot-1.4.2/utils/rsnapreport.pl. Move this file in /usr/local/bin/, and make it executable.

chmod +x /usr/local/bin/rsnapreport.pl

Crontab entry

Now in your crontab or in your shell command, you will have something like this:

0 3    * * *   root   /usr/bin/rsnapshot daily 2>&1 | /usr/local/bin/rsnapreport.pl | mailx -s "Daily Backup $(date '+%d-%m-%Y T%H%M')" gavrilut.ionut@gmail.com

Adjust it for your needs.