Yedidyah Bar David has uploaded a new change for review.

Change subject: packaging: setup: drop tables on restore
......................................................................

packaging: setup: drop tables on restore

Without this change, running 'engine-backup.sh --mode=restore' twice
causes some lines to be duplicated in the database.

Bug-Url: https://bugzilla.redhat.com/1020277
Change-Id: I8bdd8c01349b3cb2a4b1ab79a048c09479c23f27
Signed-off-by: Yedidyah Bar David <d...@redhat.com>
---
M packaging/bin/engine-backup.sh
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/72/20372/1

diff --git a/packaging/bin/engine-backup.sh b/packaging/bin/engine-backup.sh
index e79edbd..5b4b3b2 100755
--- a/packaging/bin/engine-backup.sh
+++ b/packaging/bin/engine-backup.sh
@@ -227,6 +227,7 @@
 backupDB() {
        local file="$1"
        PGPASSFILE="${MYPGPASS}" pg_dump \
+               -c \
                -E "UTF8" \
                --disable-dollar-quoting \
                --disable-triggers \


-- 
To view, visit http://gerrit.ovirt.org/20372
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8bdd8c01349b3cb2a4b1ab79a048c09479c23f27
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.3
Gerrit-Owner: Yedidyah Bar David <d...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to