Fix another damn typo

This commit is contained in:
Salt 2020-07-11 09:05:34 -05:00
parent 6210946589
commit c64386dd4e

View File

@ -42,7 +42,7 @@ for dir in /home/*; do
tar czhf "$OUTDIR/desktop-$username-{{ inventory_hostname }}-$(date -Iseconds).tar.gz" "$dir/.backup/"*
if (( "$(date +%d)" == "1" )) || [ -f "$forcefile" ]; then
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
tar \
--exclude "$dir/.ansible" \