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"
|
log "Detected conditions for monthly dump"
|
||||||
if command -v aws > /dev/null 2>&1 && aws s3 ls "s3://$s3bucket" > /dev/null 2>&1; then
|
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
|
# Time for huge backups piped straight to S3
|
||||||
tar \
|
tar cz \
|
||||||
--exclude "$dir/.ansible" \
|
--exclude "$dir/.ansible" \
|
||||||
--exclude "$dir/.backup" \
|
--exclude "$dir/.backup" \
|
||||||
--exclude "$dir/.cache" \
|
--exclude "$dir/.cache" \
|
||||||
@ -53,7 +53,7 @@ for dir in /home/*; do
|
|||||||
--exclude "$dir/Dropbox" \
|
--exclude "$dir/Dropbox" \
|
||||||
--exclude "$dir/Nextcloud" \
|
--exclude "$dir/Nextcloud" \
|
||||||
--exclude "$dir/snap" \
|
--exclude "$dir/snap" \
|
||||||
czf - "$dir/"* \
|
f - "$dir/"* \
|
||||||
| gzip -c | aws s3 cp - "s3://$s3bucket" \
|
| gzip -c | aws s3 cp - "s3://$s3bucket" \
|
||||||
--recursive \
|
--recursive \
|
||||||
--only-show-errors \
|
--only-show-errors \
|
||||||
|
Loading…
Reference in New Issue
Block a user