Send report with rsnapshot (rsnapreport)

2018, Nov 11

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/ Move this file in /usr/local/bin/, and make it executable.

chmod +x /usr/local/bin/

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/ | mailx -s "Daily Backup $(date '+%d-%m-%Y T%H%M')" $MAIL

Adjust it for your needs.