Skip to content

Instantly share code, notes, and snippets.

@alexclifford
Created January 16, 2014 00:56
Show Gist options
  • Save alexclifford/8447886 to your computer and use it in GitHub Desktop.
Save alexclifford/8447886 to your computer and use it in GitHub Desktop.
Useful BackupPC crons.
# Do a check to ensure BackupPC is running, if not email root
00 12 * * * backuppc /usr/share/backuppc/bin/BackupPC_sendEmail -c
# Email a daily host summary
50 18 * * * root wget --user=backuppc --password=XXXXXXXX -O hostsummary.html http://backupserver/backuppc/index.cgi?action=summary > /dev/null 2>&1; cat hostsummary.html | mail -a "Content-type: text/html" -a "From: [email protected]" -s "Backup Summary" [email protected] > /dev/null 2>&1; rm hostsummary.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment