diff options
author | intrigeri <intrigeri@boum.org> | 2012-02-25 13:30:09 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2012-02-25 13:30:09 +0100 |
commit | db168e41fd441fc022a8f39311385691b845b3e3 (patch) | |
tree | a948b8ff88b5ee16d33dbee5175f7cd698229507 /handlers/pgsql.in | |
parent | ae6f3bb7520f16a522353adc43e92ff11fdb8dd4 (diff) | |
download | backupninja-db168e41fd441fc022a8f39311385691b845b3e3.tar.gz backupninja-db168e41fd441fc022a8f39311385691b845b3e3.tar.bz2 |
pgsql: don't produce empty uncompressed backups (Redmine#3820).
Diffstat (limited to 'handlers/pgsql.in')
-rw-r--r-- | handlers/pgsql.in | 2 |
1 files changed, 1 insertions, 1 deletions
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\"" |