From 9d8b47ba9ea7f8c5f2aa82352b53138c528efda0 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Wed, 9 Oct 2019 13:48:50 +1100 Subject: [PATCH] DCD-686: Only download backups if changed. --- roles/fetch_backups/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/fetch_backups/tasks/main.yml b/roles/fetch_backups/tasks/main.yml index 45d7e1f..16b18b8 100644 --- a/roles/fetch_backups/tasks/main.yml +++ b/roles/fetch_backups/tasks/main.yml @@ -28,6 +28,7 @@ - name: Fetch the manifest from S3 aws_s3: mode: get + overwrite: different bucket: "{{ atl_backup_manifest_bucket }}" object: "{{ atl_backup_manifest_path }}" dest: "{{ atl_backup_manifest_dest }}" @@ -55,6 +56,7 @@ - name: Fetch DB backup from S3 aws_s3: mode: get + overwrite: different bucket: "{{ atl_backup_manifest.db_dump | urlsplit('hostname') }}" object: "{{ atl_backup_manifest.db_dump | urlsplit('path') }}" dest: "{{ atl_backup_db_dest }}" @@ -62,6 +64,7 @@ - name: Fetch Home backup from S3 aws_s3: mode: get + overwrite: different bucket: "{{ atl_backup_manifest.shared_home_dump | urlsplit('hostname') }}" object: "{{ atl_backup_manifest.shared_home_dump | urlsplit('path') }}" dest: "{{ atl_backup_home_dest }}"