equal
deleted
inserted
replaced
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'] |