Am 16.05.2016 um 22:55 schrieb intrigeri:
> Control: severity -1 important
>
>> Justification: causes serious data loss
>
> I'm sorry, but we can't reasonably treat all bugs in backup software
> as critical, at least as long as none of the original data that you're
> backing up is lost, so I'm adjusting severity a bit.

No problem

> Note that backupninja upstream is a sleepy state these days, so: good
> patches are welcome

Ok. That was not easy. The diff for

/usr/share/backupninja/pgsql

is attached (and tested, the new code is running and does well with my dbs).


Alles Gute,

Christof Thalhofer

--- pgsql-old	2016-05-17 00:53:25.925836858 +0200
+++ pgsql	2016-05-17 00:58:35.639317340 +0200
@@ -97,7 +97,8 @@
    if [ "$usevserver" = "yes" ]; then
       	cmdprefix="$VSERVER $vsname exec "
    fi
-   execstr="${cmdprefix} su - $PGSQLUSER -c 'psql -AtU $PGSQLUSER -c \"SELECT datname FROM pg_database WHERE NOT datistemplate\"'"
+   # fix for Bug#824508: backupninja: Postgresql 9.4 backup databases = all crashes
+   execstr="${cmdprefix} su -c 'psql -AtU $PGSQLUSER -c \"SELECT datname FROM pg_database WHERE NOT datistemplate\"' -m $PGSQLUSER"
    debug execstr
    dblist=""
    for db in $(eval $execstr 2>&1); do

Reply via email to