sqlite-backup/sqlite_backup-cron

21 lines
758 B
Text
Raw Permalink Normal View History

2020-02-13 15:44:12 +13:00
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
2020-02-13 15:44:12 +13:00
#
# run system backups
#
# hourly - at 5 minutes past mon-sat
05 * * * * root cd /home/data/[bw_dir]/scripts/sqlite-backup && ./sqlite_backup --hourly
2020-02-13 15:44:12 +13:00
#
# daily - at 7:30 pm, mon-sat
30 19 * * * root /home/data/[bw_dir]/scripts/sqlite-backup && ./sqlite_backup --daily
2020-02-13 15:44:12 +13:00
#
# weekly - at 7:30 pm, sun
30 19 * * sun root /home/data/[bw_dir]/scripts/sqlite-backup && ./sqlite_backup --weekly
2020-02-13 15:44:12 +13:00
#
# monthly - at 8:30 pm, on the first of the last of the month
30 20 1 * * root /home/data/[bw_dir]/scripts/sqlite-backup && ./sqlite_backup --monthly
2020-02-13 15:44:12 +13:00
#
# yearly - at 8:30 pm, on the first of January.
30 20 1 1 * root /home/data/[bw_dir]/scripts/sqlite-backup && ./sqlite_backup --yearly