Add local backups for Terraria Fargo
This commit is contained in:
parent
47a4c09b5a
commit
ba228984c1
@ -7,4 +7,6 @@
|
||||
vars:
|
||||
backup_s3backup_list_extra:
|
||||
- /data
|
||||
backup_s3backup_exclude_list_extra:
|
||||
- /data/terraria-fargo/backups
|
||||
tags: [ backup ]
|
||||
|
@ -12,3 +12,9 @@
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /data/terraria-fargo/data:/terraria
|
||||
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 ]
|
||||
|
Loading…
Reference in New Issue
Block a user