improved README and removed problematic shell variables (which don't work on all systems) from the cron script

This commit is contained in:
Dave Lane 2020-02-13 18:17:25 +13:00
parent 77aad0ac9c
commit 21e333cfde
2 changed files with 26 additions and 9 deletions

View file

@ -1,22 +1,20 @@
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
USER=root
DIR=/home/dave/sqlite_backups
SCRIPT=dbbackup
#
# run system backups
#
# hourly - at 5 minutes past mon-sat
05 * * * * $USER $DIR/$SCRIPT --hourly
05 * * * * root /home/data/scripts/sqlite-backup/sqlite_backup --hourly
#
# daily - at 7:30 pm, mon-sat
30 19 * * * $USER $DIR/$SCRIPT --daily
30 19 * * * root /home/data/scripts/sqlite-backup/sqlite_backup --daily
#
# weekly - at 7:30 pm, sun
30 19 * * sun $USER $DIR/$SCRIPT --weekly
30 19 * * sun root /home/data/scripts/sqlite-backup/sqlite_backup --weekly
#
# monthly - at 8:30 pm, on the first of the last of the month
30 20 1 * * $USER $DIR/$SCRIPT --monthly
30 20 1 * * root /home/data/scripts/sqlite-backup/sqlite_backup --monthly
#
# yearly - at 8:30 pm, on the first of January.
30 20 1 1 * $USER $DIR/$SCRIPT --yearly
30 20 1 1 * root /home/data/scripts/sqlite-backup/sqlite_backup --yearly