server/serverctl.py
branchstable
changeset 5043 fe52dd3936cf
parent 5033 441191f7def1
child 5410 3cccd5e9dd7d
--- a/server/serverctl.py	Fri Mar 26 14:13:34 2010 +0100
+++ b/server/serverctl.py	Fri Mar 26 15:53:07 2010 +0100
@@ -389,7 +389,7 @@
             get_connection(
                 system['db-driver'], database=system['db-name'],
                 host=system.get('db-host'), port=system.get('db-port'),
-                user=system.get('db-user'), password=system.get('db-password'), 
+                user=system.get('db-user'), password=system.get('db-password'),
                 **extra)
         except Exception, ex:
             raise ConfigurationError(
@@ -572,20 +572,16 @@
 
 def _local_dump(appid, output):
     config = ServerConfiguration.config_for(appid)
-    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)
+    config.quick_start = True
+    mih = config.migration_handler(connect=False, verbosity=1)
     mih.backup_database(output, askconfirm=False)
     mih.shutdown()
 
 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 = 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)
+    config.quick_start = True
+    mih = config.migration_handler(connect=False, verbosity=1)
     mih.restore_database(backupfile, drop, systemonly, askconfirm=False)
     repo = mih.repo_connect()
     # version of the database