lvm-backup/crontab.example

12 lines
492 B
Text

# supply all the paths the script needs to run
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SHELL=/bin/bash
# backup mail, once every 2 hours
30 */2 * * * /root/backup/backupscript.sh -q -k 20 mail
# backup userdirs
0 5 * * tue /root/backup/backupscript.sh -q -k 3 nfs
# backup everything else, every morning at 3AM
0 3 * * * /root/backup/backupscript.sh -q -k 7 -x mail -x nfs .
# clean up once a day at 12:10 (takes several hours)
10 12 * * * /root/backup/prune.sh -q