server/migractions.py
changeset 4905 cc94a3f3321f
parent 4899 c666d265fb95
parent 4904 a5250dafdcac
child 4925 0d66fbe050c6
equal deleted inserted replaced
4903:627fcd90e08f 4905:cc94a3f3321f
   145         # backup
   145         # backup
   146         tmpdir = tempfile.mkdtemp(dir=instbkdir)
   146         tmpdir = tempfile.mkdtemp(dir=instbkdir)
   147         try:
   147         try:
   148             for source in repo.sources:
   148             for source in repo.sources:
   149                 try:
   149                 try:
   150                     source.backup(osp.join(tmpdir, source.uri, self.confirm))
   150                     source.backup(osp.join(tmpdir, source.uri), self.confirm)
   151                 except Exception, ex:
   151                 except Exception, ex:
   152                     print '-> error trying to backup %s [%s]' % (source.uri, ex)
   152                     print '-> error trying to backup %s [%s]' % (source.uri, ex)
   153                     if not self.confirm('Continue anyway?', default='n'):
   153                     if not self.confirm('Continue anyway?', default='n'):
   154                         raise SystemExit(1)
   154                         raise SystemExit(1)
   155                     else:
   155                     else: