From db168e41fd441fc022a8f39311385691b845b3e3 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sat, 25 Feb 2012 13:30:09 +0100 Subject: pgsql: don't produce empty uncompressed backups (Redmine#3820). --- ChangeLog | 2 ++ handlers/pgsql.in | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4bc3bbb..b56fee0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ version 1.0 -- UNRELEASED (Closes: #657201) mysql: . Don't attempt to dump performance_schema database (Redmine#3741). + pgsql: + . Don't produce empty uncompressed backups (Redmine#3820). rysnc: . Fix numericids option (Redmine#3691). . Mangle $rsync_options just afterwards (Redmine#3702). diff --git a/handlers/pgsql.in b/handlers/pgsql.in index a50d3c7..fc337a0 100644 --- a/handlers/pgsql.in +++ b/handlers/pgsql.in @@ -186,7 +186,7 @@ else if [ "$compress" == "yes" ]; then dumpcmd="set -o pipefail ; $PGSQLDUMP --format=$format ${disablecustomcompress} $db | $GZIP $GZIP_OPTS > '$backupdir/${db}.${dumpext}.gz'" else - dumpcmd="$PGSQLDUMP --format=$format ${disablecustomcompress} $db | > '$backupdir/${db}.${dumpext}'" + dumpcmd="$PGSQLDUMP --format=$format ${disablecustomcompress} $db > '$backupdir/${db}.${dumpext}'" fi if [ $usevserver = yes ]; then execstr="$VSERVER $vsname exec su - $PGSQLUSER -s /bin/bash -c \"$dumpcmd\"" -- cgit v1.2.3