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