From 198285910af59b2f78a5ab361970836f6e2690f2 Mon Sep 17 00:00:00 2001 From: skobkin Date: Wed, 6 Nov 2024 19:32:00 +0000 Subject: [PATCH] postgresql_backup. Removing unnecessary output. --- postgresql_backup/pg_backup.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/postgresql_backup/pg_backup.sh b/postgresql_backup/pg_backup.sh index 2fdc607..5e6f668 100644 --- a/postgresql_backup/pg_backup.sh +++ b/postgresql_backup/pg_backup.sh @@ -63,10 +63,8 @@ for PREFIX in $DATABASE_PREFIXES; do # Perform the backup based on the specified format if [[ "$DUMP_FORMAT" == "custom" ]]; then - echo "Performing custom format backup with zstd compression level 21..." pg_dump -h "$HOST" -p "$PORT" -U "$USER" -Fc --compress="zstd:21" "$DB_NAME" -f "$BACKUP_FILE" elif [[ "$DUMP_FORMAT" == "sql" ]]; then - echo "Performing SQL format backup with gzip compression..." pg_dump -h "$HOST" -p "$PORT" -U "$USER" "$DB_NAME" | gzip -9 > "$BACKUP_FILE" else echo "Invalid DUMP_FORMAT for $PREFIX: $DUMP_FORMAT. Skipping..."