Skip to content
Snippets Groups Projects

dump_instance.sh and load_instance.sh scripts

Merged Maciej Krzeminski requested to merge mkrzeminski/haf_pg_dump_restore into develop
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -11,7 +11,7 @@ from local_tools import make_fork, wait_for_irreversible_progress, run_networks,
@@ -11,7 +11,7 @@ from local_tools import make_fork, wait_for_irreversible_progress, run_networks,
# MTTK TODO once the errrors disappear we could use single pg_restore command
# MTTK TODO once the errrors disappear we could use single pg_restore command
ERRRORS_IN_CREATE_POLICY = True
ERRORS_IN_CREATE_POLICY = True
@@ -85,7 +85,7 @@ def wipe_db(db_name):
@@ -85,7 +85,7 @@ def wipe_db(db_name):
def pg_restore(target_db_name):
def pg_restore(target_db_name):
if ERRRORS_IN_CREATE_POLICY:
if ERRORS_IN_CREATE_POLICY:
# restore pre-data
# restore pre-data
shell(f"pg_restore --section=pre-data -Fc -d {target_db_name} adump.Fcsql")
shell(f"pg_restore --section=pre-data -Fc -d {target_db_name} adump.Fcsql")
Loading