diff --git a/roles/backup/templates/s3backup.sh b/roles/backup/templates/s3backup.sh index 22227c7..0197c21 100644 --- a/roles/backup/templates/s3backup.sh +++ b/roles/backup/templates/s3backup.sh @@ -94,8 +94,8 @@ if command -v psql > /dev/null 2>&1; then echo "Backing up $db" path="$backupdir/$db.pgsql.gz" sudo -u postgres pg_dump "$db" \ - | gzip -v9 > - "$path" + | gzip -v9 \ + > "$path" DIRS+=("$path") done fi