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