server/sources/native.py
changeset 8947 3bbd416b09ec
parent 8916 2a424950463d
child 9098 5467fb901931
child 9130 0f1504a9fb51
equal deleted inserted replaced
8946:fae2f561b0f5 8947:3bbd416b09ec
   368                 self.repo._free_cnxset(_cnxset)
   368                 self.repo._free_cnxset(_cnxset)
   369 
   369 
   370     def backup(self, backupfile, confirm, format='native'):
   370     def backup(self, backupfile, confirm, format='native'):
   371         """method called to create a backup of the source's data"""
   371         """method called to create a backup of the source's data"""
   372         if format == 'portable':
   372         if format == 'portable':
   373             self.repo.fill_schema()
   373             # ensure the schema is the one stored in the database: if repository
   374             self.set_schema(self.repo.schema)
   374             # started in quick_start mode, the file system's one has been loaded
       
   375             # so force reload
       
   376             if self.repo.config.quick_start:
       
   377                 self.repo.set_schema(self.repo.deserialize_schema(),
       
   378                                      resetvreg=False)
   375             helper = DatabaseIndependentBackupRestore(self)
   379             helper = DatabaseIndependentBackupRestore(self)
   376             self.close_source_connections()
   380             self.close_source_connections()
   377             try:
   381             try:
   378                 helper.backup(backupfile)
   382                 helper.backup(backupfile)
   379             finally:
   383             finally: