initial commit of working script
This commit is contained in:
commit
aaf3c566ef
4 changed files with 287 additions and 0 deletions
22
sqlite_backup-cron
Normal file
22
sqlite_backup-cron
Normal file
|
@ -0,0 +1,22 @@
|
|||
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
|
||||
#
|
||||
# daily - at 7:30 pm, mon-sat
|
||||
30 19 * * * $USER $DIR/$SCRIPT --daily
|
||||
#
|
||||
# weekly - at 7:30 pm, sun
|
||||
30 19 * * sun $USER $DIR/$SCRIPT --weekly
|
||||
#
|
||||
# monthly - at 8:30 pm, on the first of the last of the month
|
||||
30 20 1 * * $USER $DIR/$SCRIPT --monthly
|
||||
#
|
||||
# yearly - at 8:30 pm, on the first of January.
|
||||
30 20 1 1 * $USER $DIR/$SCRIPT --yearly
|
Loading…
Add table
Add a link
Reference in a new issue