updated to new version

pull/41/head
Cian Hatton 3 years ago
parent 0af2cd16e2
commit f4715491a3

@ -137,7 +137,7 @@
"name": "roles/docker_s3_backup/tasks/main.yml", "name": "roles/docker_s3_backup/tasks/main.yml",
"ftype": "file", "ftype": "file",
"chksum_type": "sha256", "chksum_type": "sha256",
"chksum_sha256": "0fcf1fbf3fafdaf129a33876344c1ea07d54ca562c253cc81c5eebc806ff51a9", "chksum_sha256": "68b33673f05e9291aa60766650d4ccbc4b80e5d44ba1b7d33da954f43d53ca64",
"format": 1 "format": 1
}, },
{ {
@ -200,7 +200,7 @@
"name": "roles/docker_s3_volume_restore/tasks/main.yml", "name": "roles/docker_s3_volume_restore/tasks/main.yml",
"ftype": "file", "ftype": "file",
"chksum_type": "sha256", "chksum_type": "sha256",
"chksum_sha256": "476842dfde43303d0a1899e9c53e9eb7e05626860531436f198baa900f11aef1", "chksum_sha256": "29cff4c5cdb9763c78e02886de3695e4e311c57153a28f3623b9c99fd0038846",
"format": 1 "format": 1
}, },
{ {

@ -23,7 +23,7 @@
"name": "FILES.json", "name": "FILES.json",
"ftype": "file", "ftype": "file",
"chksum_type": "sha256", "chksum_type": "sha256",
"chksum_sha256": "d430b04ca511676cafb9644eb216080037b0ba3d56bed40d4e48f3fe3283000f", "chksum_sha256": "826fa17a526c6aee0a3902560d70a21191cd31c771e120c376ad4fdb714ab618",
"format": 1 "format": 1
}, },
"format": 1 "format": 1

@ -29,7 +29,7 @@
name: "backup-container-{{ item.Name }}-{{ 10 | random }}" name: "backup-container-{{ item.Name }}-{{ 10 | random }}"
image: ubuntu image: ubuntu
command: "tar -czvf /backups/{{ item.Name }}-{{ backup_time }}.tar.gz /data" command: "tar -czvf /backups/{{ item.Name }}-{{ backup_time }}.tar.gz /data"
auto_remove: true cleanup: true
detach: false # block until this container exists. detach: false # block until this container exists.
state: started state: started
volumes: volumes:

@ -73,7 +73,7 @@
name: "restore-container-{{ docker_backup_s3_volume.name }}-{{ 100 | random }}" name: "restore-container-{{ docker_backup_s3_volume.name }}-{{ 100 | random }}"
image: ubuntu image: ubuntu
command: "rm -rf ./*" command: "rm -rf ./*"
auto_remove: true cleanup: true
detach: false # block until this container exists. detach: false # block until this container exists.
state: started state: started
# start inside the directory we want to wipe # start inside the directory we want to wipe
@ -90,7 +90,7 @@
image: ubuntu image: ubuntu
# extract the tar into the volume. # extract the tar into the volume.
command: "tar xvf /tmp/{{ container_s3_key }} -C /data --strip-components 1" command: "tar xvf /tmp/{{ container_s3_key }} -C /data --strip-components 1"
auto_remove: true cleanup: true
detach: false # block until this container exists. detach: false # block until this container exists.
state: started state: started
volumes: volumes:

Loading…
Cancel
Save