server/sqlutils.py
changeset 2737 aaef49a3c39b
parent 2616 4501ee760eec
child 2739 2403260cb5b4
equal deleted inserted replaced
2736:c5048502409f 2737:aaef49a3c39b
   202                                            keepownership=False)
   202                                            keepownership=False)
   203         backupdir = os.path.dirname(backupfile)
   203         backupdir = os.path.dirname(backupfile)
   204         if not os.path.exists(backupdir):
   204         if not os.path.exists(backupdir):
   205             if confirm('%s does not exist. Create it?' % backupdir,
   205             if confirm('%s does not exist. Create it?' % backupdir,
   206                        abort=False, shell=False):
   206                        abort=False, shell=False):
   207                 os.mkdir(backupdir)
   207                 os.makedirs(backupdir)
   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