server/sqlutils.py
changeset 2739 2403260cb5b4
parent 2737 aaef49a3c39b
child 2759 23d7a75693f8
equal deleted inserted replaced
2738:e7e46121a4f9 2739:2403260cb5b4
   208             else:
   208             else:
   209                 print '-> failed to backup instance'
   209                 print '-> failed to backup instance'
   210                 return
   210                 return
   211         if os.system(cmd):
   211         if os.system(cmd):
   212             print '-> error trying to backup with command', cmd
   212             print '-> error trying to backup with command', cmd
   213             if not confirm('Continue anyway?', default_is_yes=False):
   213             if not confirm('Continue anyway?', default='n'):
   214                 raise SystemExit(1)
   214                 raise SystemExit(1)
   215         else:
   215         else:
   216             print '-> backup file',  backupfile
   216             print '-> backup file',  backupfile
   217             restrict_perms_to_user(backupfile, self.info)
   217             restrict_perms_to_user(backupfile, self.info)
   218 
   218