server/migractions.py
changeset 1240 6a9f621e07cc
parent 1080 7437abc17e02
child 1251 af40e615dc89
equal deleted inserted replaced
1239:7eda09aa7553 1240:6a9f621e07cc
   104                 if not answer:
   104                 if not answer:
   105                     raise SystemExit(1)
   105                     raise SystemExit(1)
   106                 if answer == 1: # 1: continue, 2: retry
   106                 if answer == 1: # 1: continue, 2: retry
   107                     break
   107                     break
   108             else:
   108             else:
       
   109                 from cubicweb.toolsutils import restrict_perms_to_user
   109                 print 'database backup:', backupfile
   110                 print 'database backup:', backupfile
       
   111                 restrict_perms_to_user(backupfile, self.info)
   110                 break
   112                 break
   111         
   113         
   112     def restore_database(self, backupfile, drop=True):
   114     def restore_database(self, backupfile, drop=True):
   113         config = self.config
   115         config = self.config
   114         source = config.sources()['system']
   116         source = config.sources()['system']