mirror of
https://github.com/yavook/kiwi-backup.git
synced 2024-11-21 14:33:00 +00:00
randomized schedules
This commit is contained in:
parent
48d02483fb
commit
af2d16f64b
2 changed files with 15 additions and 8 deletions
|
@ -81,8 +81,8 @@ ENV \
|
|||
#################
|
||||
# BACKUP POLICY #
|
||||
#################
|
||||
SCHEDULE_BACKUP="R 02 * * *" \
|
||||
SCHEDULE_CLEANUP="R 04 * * *" \
|
||||
SCHEDULE_BACKUP="R 2 * * *" \
|
||||
SCHEDULE_CLEANUP="R 4 * * *" \
|
||||
FULL_BACKUP_FREQUENCY=3M \
|
||||
BACKUP_RETENTION_TIME=6M \
|
||||
KEEP_NUM_FULL_CHAINS=2 \
|
||||
|
@ -90,8 +90,8 @@ ENV \
|
|||
######################
|
||||
# ADDITIONAL OPTIONS #
|
||||
######################
|
||||
SCHEDULE_RMFULL="R 05 * * SAT" \
|
||||
SCHEDULE_RMINCR="R 05 * * SUN" \
|
||||
SCHEDULE_RMFULL="R 5 * * SAT" \
|
||||
SCHEDULE_RMINCR="R 5 * * SUN" \
|
||||
BACKUP_VOLSIZE=1024 \
|
||||
BACKUP_SOURCE="/kiwi-backup/source" \
|
||||
BACKUP_TARGET="file:///kiwi-backup/target" \
|
||||
|
|
|
@ -3,7 +3,14 @@
|
|||
this_script="$( readlink -f "${0}" )"
|
||||
this_dir="${this_script%/*}"
|
||||
|
||||
echo "${SCHEDULE_BACKUP}" "$( "${this_dir}/build_command" backup )"
|
||||
echo "${SCHEDULE_CLEANUP}" "$( "${this_dir}/build_command" cleanup )"
|
||||
echo "${SCHEDULE_RMFULL}" "$( "${this_dir}/build_command" rmfull )"
|
||||
echo "${SCHEDULE_RMINCR}" "$( "${this_dir}/build_command" rmincr )"
|
||||
echo "${SCHEDULE_BACKUP}" "$( "${this_dir}/build_command" backup )" \
|
||||
| /usr/local/libexec/kiwi-cron/randomize_schedule
|
||||
|
||||
echo "${SCHEDULE_CLEANUP}" "$( "${this_dir}/build_command" cleanup )" \
|
||||
| /usr/local/libexec/kiwi-cron/randomize_schedule
|
||||
|
||||
echo "${SCHEDULE_RMFULL}" "$( "${this_dir}/build_command" rmfull )" \
|
||||
| /usr/local/libexec/kiwi-cron/randomize_schedule
|
||||
|
||||
echo "${SCHEDULE_RMINCR}" "$( "${this_dir}/build_command" rmincr )" \
|
||||
| /usr/local/libexec/kiwi-cron/randomize_schedule
|
||||
|
|
Loading…
Reference in a new issue