add upload to backup
parent
4302e3c7eb
commit
78a0e68988
|
@ -11,3 +11,6 @@
|
||||||
path: /var/lib/docker/volumes # Replace with the path of the directory or files you want to archive
|
path: /var/lib/docker/volumes # Replace with the path of the directory or files you want to archive
|
||||||
dest: "/root/backups/volumes-{{ current_date }}.tar.gz" # Replace with the desired destination path
|
dest: "/root/backups/volumes-{{ current_date }}.tar.gz" # Replace with the desired destination path
|
||||||
format: gz
|
format: gz
|
||||||
|
- name: Upload tar file to S3
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: "s3cmd put /root/backups/volumes-{{ current_date }}.tar.gz s3://eron/i3"
|
Loading…
Reference in New Issue