Add local backups for Terraria Fargo

This commit is contained in:
Salt 2021-10-14 22:57:24 -05:00
parent 47a4c09b5a
commit ba228984c1
2 changed files with 8 additions and 0 deletions

View File

@ -7,4 +7,6 @@
vars: vars:
backup_s3backup_list_extra: backup_s3backup_list_extra:
- /data - /data
backup_s3backup_exclude_list_extra:
- /data/terraria-fargo/backups
tags: [ backup ] tags: [ backup ]

View File

@ -12,3 +12,9 @@
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /data/terraria-fargo/data:/terraria - /data/terraria-fargo/data:/terraria
tags: [ docker, terraria, fargo ] tags: [ docker, terraria, fargo ]
- name: assure terraria backup dir
file: path=/data/terraria-fargo/backups state=directory owner=root group=root mode=0755
tags: [ docker, terraria, fargo ]
- name: assure terraria backup cronjob
cron: user=root name=terraria-fargo minute=*/24 job="tar czvf /data/terraria-fargo/backups/data-$(date +%Y-%m-%d-%H%M).tgz /data/terraria-fargo/data/"
tags: [ docker, terraria, fargo ]