backups: commit lines that escaped from 58f74c30
This commit is contained in:
parent
a95e882c07
commit
7f6a763640
1 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ function perform_backups()
|
|||
then
|
||||
echo "Plain backup of $DATABASE"
|
||||
|
||||
if ! pg_dump -Fp -U "$USERNAME" "$DATABASE" | gzip > $FINAL_BACKUP_DIR"$DATABASE".sql.gz.in_progress; then
|
||||
if ! pg_dump -Fp $EX_TABLES -U "$USERNAME" "$DATABASE" | gzip > $FINAL_BACKUP_DIR"$DATABASE".sql.gz.in_progress; then
|
||||
echo "[!!ERROR!!] Failed to produce plain backup database $DATABASE" 1>&2
|
||||
else
|
||||
mv $FINAL_BACKUP_DIR"$DATABASE".sql.gz.in_progress $FINAL_BACKUP_DIR"$DATABASE".sql.gz
|
||||
|
@ -67,7 +67,7 @@ function perform_backups()
|
|||
then
|
||||
echo "Custom backup of $DATABASE"
|
||||
|
||||
if ! pg_dump -Fc -U "$USERNAME" "$DATABASE" -f $FINAL_BACKUP_DIR"$DATABASE".custom.in_progress; then
|
||||
if ! pg_dump -Fc $EX_TABLES -U "$USERNAME" "$DATABASE" -f $FINAL_BACKUP_DIR"$DATABASE".custom.in_progress; then
|
||||
echo "[!!ERROR!!] Failed to produce custom backup database $DATABASE"
|
||||
else
|
||||
mv $FINAL_BACKUP_DIR"$DATABASE".custom.in_progress $FINAL_BACKUP_DIR"$DATABASE".custom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue