From 78a0e689886d1af59c37ce8e61bb615a6d612063 Mon Sep 17 00:00:00 2001 From: omidshj Date: Fri, 12 Jul 2024 20:45:14 +0330 Subject: [PATCH] add upload to backup --- backup-i3.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backup-i3.yml b/backup-i3.yml index 8519503..8444c55 100644 --- a/backup-i3.yml +++ b/backup-i3.yml @@ -11,3 +11,6 @@ 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 format: gz + - name: Upload tar file to S3 + ansible.builtin.command: + cmd: "s3cmd put /root/backups/volumes-{{ current_date }}.tar.gz s3://eron/i3" \ No newline at end of file