Ability to recreate an empty database (Postgres, mongo)

Idea ID 2783536

Ability to recreate an empty database (Postgres, mongo)

Normally running the 'backup_util.sh' is the part of the daily routine to make a backup about the required components (mainly the config, SI, alerts, etc...)

In a case of a problem we can restore the data with the same script from the previous backup...


EXCEPT any of the databases (postgres, mongo) are damaged/corrupted !!!

If the database cannot start, we cannot restore the saved data, because the invoked restore commands are expecting a startable (and already running) database !!!
$ESEC_HOME/3rdparty/postgresql/bin/pg_restore
$SI_DB_TOOLS_DIR/mongorestore

So, this is a 'stalemate' 😞 We need to restore the database, because it was corrupted/damaged. Currently the database is unstartable… And the restore function requires a RUNNING state 😞 😞

ER1: Enhance the 'backup_util.sh' to be able to make a database backup in a format which could be use to rebuild (with another 'backup_util.sh' option) from the scratch a new database


ER2: A standalone utility (script) which can create an empty database with the appropriate credentials. If it ready, we can restore the previously saved backup content 🙂



best regards

Erno
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.