added a MAIN_DIR variable, and tweaked the conf sample and cron files to reflect how this is deployed in practice

This commit is contained in:
Dave Lane 2021-08-19 05:16:01 +00:00
parent 5642cfc67c
commit 4eec9fbcf9
3 changed files with 13 additions and 17 deletions

View file

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