Fix tar arg order
This commit is contained in:
parent
c64386dd4e
commit
c98a26f6fb
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user