mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 20:02:32 +01:00
pgsql: don't produce empty uncompressed backups (Redmine#3820).
This commit is contained in:
parent
ae6f3bb752
commit
db168e41fd
@ -10,6 +10,8 @@ version 1.0 -- UNRELEASED
|
|||||||
(Closes: #657201)
|
(Closes: #657201)
|
||||||
mysql:
|
mysql:
|
||||||
. Don't attempt to dump performance_schema database (Redmine#3741).
|
. Don't attempt to dump performance_schema database (Redmine#3741).
|
||||||
|
pgsql:
|
||||||
|
. Don't produce empty uncompressed backups (Redmine#3820).
|
||||||
rysnc:
|
rysnc:
|
||||||
. Fix numericids option (Redmine#3691).
|
. Fix numericids option (Redmine#3691).
|
||||||
. Mangle $rsync_options just afterwards (Redmine#3702).
|
. Mangle $rsync_options just afterwards (Redmine#3702).
|
||||||
|
@ -186,7 +186,7 @@ else
|
|||||||
if [ "$compress" == "yes" ]; then
|
if [ "$compress" == "yes" ]; then
|
||||||
dumpcmd="set -o pipefail ; $PGSQLDUMP --format=$format ${disablecustomcompress} $db | $GZIP $GZIP_OPTS > '$backupdir/${db}.${dumpext}.gz'"
|
dumpcmd="set -o pipefail ; $PGSQLDUMP --format=$format ${disablecustomcompress} $db | $GZIP $GZIP_OPTS > '$backupdir/${db}.${dumpext}.gz'"
|
||||||
else
|
else
|
||||||
dumpcmd="$PGSQLDUMP --format=$format ${disablecustomcompress} $db | > '$backupdir/${db}.${dumpext}'"
|
dumpcmd="$PGSQLDUMP --format=$format ${disablecustomcompress} $db > '$backupdir/${db}.${dumpext}'"
|
||||||
fi
|
fi
|
||||||
if [ $usevserver = yes ]; then
|
if [ $usevserver = yes ]; then
|
||||||
execstr="$VSERVER $vsname exec su - $PGSQLUSER -s /bin/bash -c \"$dumpcmd\""
|
execstr="$VSERVER $vsname exec su - $PGSQLUSER -s /bin/bash -c \"$dumpcmd\""
|
||||||
|
Loading…
Reference in New Issue
Block a user