Eli Mesika has submitted this change and it was merged.

Change subject: core:  [TEXT] restore.sh woes, unable to...
......................................................................


core:  [TEXT] restore.sh woes, unable to...

[TEXT] restore.sh woes, unable to restore engine DB without using -u postgres

1) removing the internal create/drop of the database, this should be
done manually as explained in the script usage statement
2) adding a comment that this script will work only for DB engine user
3) removing from backup script the -C flag to prevent database creation
statements generation
4) If an old backup having "CREATE DATABASE" or "ALTER DATABASE" is
used, those statements are removed before an attempt to restore the
database is done.

Change-Id: I44921d6fac57cfc565dacca52ed5a6d3b5b57f66
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=976337
Signed-off-by: Eli Mesika <[email protected]>
---
M packaging/dbscripts/backup.sh
M packaging/dbscripts/restore.sh
2 files changed, 36 insertions(+), 31 deletions(-)

Approvals:
  Eli Mesika: Verified; Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I44921d6fac57cfc565dacca52ed5a6d3b5b57f66
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Martin PeÅ™ina <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to