lvm-backup/crontab.example

13 lines
492 B
Text
Raw Normal View History

2017-08-26 10:45:43 +02:00
# 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
2017-08-24 23:27:49 +02:00
# backup mail, once every 2 hours
30 */2 * * * /root/backup/backupscript.sh -q -k 20 mail
2017-08-24 23:27:49 +02:00
# backup userdirs
0 5 * * tue /root/backup/backupscript.sh -q -k 3 nfs
2017-08-24 23:27:49 +02:00
# backup everything else, every morning at 3AM
0 3 * * * /root/backup/backupscript.sh -q -k 7 -x mail -x nfs .
2017-08-24 23:27:49 +02:00
# clean up once a day at 12:10 (takes several hours)
10 12 * * * /root/backup/prune.sh -q