Lower backup interval
This commit is contained in:
parent
8e12cb19b2
commit
8379e2051e
@ -106,8 +106,7 @@
|
||||
mode: "0700"
|
||||
- name: Set up backup cronjob
|
||||
cron:
|
||||
minute: "0"
|
||||
hour: "*/2"
|
||||
minute: "*/30"
|
||||
name: "ansible-backup-terraria-{{ terraria_name }}"
|
||||
job: "{{ terraria_root }}/{{ terraria_name }}/backup.sh >> {{ terraria_root }}/{{ terraria_name }}/backups.log 2>&1"
|
||||
become: yes
|
||||
|
@ -11,7 +11,7 @@ set -e
|
||||
|
||||
export TERRARIADIR="{{ terraria_root }}/{{ terraria_name }}"
|
||||
export OUTDIR="$TERRARIADIR/backups"
|
||||
retention=84 # 2-hour intervals, 7 days
|
||||
retention=144 # 30-minute intervals, 3 days
|
||||
|
||||
# Sanity checks
|
||||
if ! [ -d "$OUTDIR" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user