From c98a26f6fb05c2ecd79a66794e32cdd41a79c9b9 Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 11 Jul 2020 09:06:37 -0500 Subject: [PATCH] Fix tar arg order --- roles/desktop/templates/backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/desktop/templates/backup.sh b/roles/desktop/templates/backup.sh index a6ddcb8..aea75ee 100644 --- a/roles/desktop/templates/backup.sh +++ b/roles/desktop/templates/backup.sh @@ -44,7 +44,7 @@ for dir in /home/*; do log "Detected conditions for monthly dump" if command -v aws > /dev/null 2>&1 && aws s3 ls "s3://$s3bucket" > /dev/null 2>&1; then # Time for huge backups piped straight to S3 - tar \ + tar cz \ --exclude "$dir/.ansible" \ --exclude "$dir/.backup" \ --exclude "$dir/.cache" \ @@ -53,7 +53,7 @@ for dir in /home/*; do --exclude "$dir/Dropbox" \ --exclude "$dir/Nextcloud" \ --exclude "$dir/snap" \ - czf - "$dir/"* \ + f - "$dir/"* \ | gzip -c | aws s3 cp - "s3://$s3bucket" \ --recursive \ --only-show-errors \