Lower backup interval

This commit is contained in:
Salt 2020-05-19 12:10:13 -05:00
parent 8e12cb19b2
commit 8379e2051e
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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