server/serverctl.py
branchstable
changeset 5033 441191f7def1
parent 4938 b1a4fe480de5
child 5043 fe52dd3936cf
--- a/server/serverctl.py	Fri Mar 26 08:32:32 2010 +0100
+++ b/server/serverctl.py	Fri Mar 26 09:18:21 2010 +0100
@@ -572,7 +572,9 @@
 
 def _local_dump(appid, output):
     config = ServerConfiguration.config_for(appid)
-    # schema=1 to avoid unnecessary schema loading
+    config.repairing = True # don't check versions
+    #config.read_instance_schema = False # bootstrap schema is enough
+    # schema=1 to avoid unnecessary fs schema loading
     mih = config.migration_handler(connect=False, schema=1, verbosity=1)
     mih.backup_database(output, askconfirm=False)
     mih.shutdown()
@@ -580,8 +582,9 @@
 def _local_restore(appid, backupfile, drop, systemonly=True):
     config = ServerConfiguration.config_for(appid)
     config.verbosity = 1 # else we won't be asked for confirmation on problems
-    config.repairing = 1 # don't check versions
-    # schema=1 to avoid unnecessary schema loading
+    config.repairing = True # don't check versions
+    config.read_instance_schema = False # bootstrap schema is enough
+    # schema=1 to avoid unnecessary fs schema loading
     mih = config.migration_handler(connect=False, schema=1, verbosity=1)
     mih.restore_database(backupfile, drop, systemonly, askconfirm=False)
     repo = mih.repo_connect()