server/serverctl.py
changeset 10569 af47954c1015
parent 10527 2379f136d48c
child 10589 7c23b7de2b8d
equal deleted inserted replaced
10568:3914388b2d0f 10569:af47954c1015
   694     config = ServerConfiguration.config_for(appid)
   694     config = ServerConfiguration.config_for(appid)
   695     config.verbosity = 1 # else we won't be asked for confirmation on problems
   695     config.verbosity = 1 # else we won't be asked for confirmation on problems
   696     config.quick_start = True
   696     config.quick_start = True
   697     mih = config.migration_handler(connect=False, verbosity=1)
   697     mih = config.migration_handler(connect=False, verbosity=1)
   698     mih.restore_database(backupfile, drop, askconfirm=False, format=format)
   698     mih.restore_database(backupfile, drop, askconfirm=False, format=format)
   699     repo = mih.repo_connect()
   699     repo = mih.repo
   700     # version of the database
   700     # version of the database
   701     dbversions = repo.get_versions()
   701     dbversions = repo.get_versions()
   702     mih.shutdown()
   702     mih.shutdown()
   703     if not dbversions:
   703     if not dbversions:
   704         print "bad or missing version information in the database, don't upgrade file system"
   704         print "bad or missing version information in the database, don't upgrade file system"