add upload to backup

master
omidshj 2024-07-12 20:45:14 +03:30
parent 4302e3c7eb
commit 78a0e68988
1 changed files with 3 additions and 0 deletions

View File

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