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