changed to cleanup

master
Cian Hatton 3 years ago
parent 7819ea4dd7
commit d4ca69dac1

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