Our backupscript for automated server backups via cronjob
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
492 B

# 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