diff options
-rw-r--r-- | lbup/targets.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lbup/targets.py b/lbup/targets.py index d6d44ff..bd53b1e 100644 --- a/lbup/targets.py +++ b/lbup/targets.py @@ -360,8 +360,11 @@ class TargetSSHLVM(TargetSSH): bup_exec = ['bup', 'on', '%s@%s' % (self._remote.username, self._remote.host), '-d', str(bupdir)] - save_opts = ['--graft=%s=%s' % (snapshot_mount, '/' if self._strip_mountpoint else mountpoint)] - index_opts = ['--no-check-device'] + + index_path = '%s/%s.index' % (bupdir, self.name) + save_opts = ['--graft=%s=%s' % (snapshot_mount, '/' if self._strip_mountpoint else mountpoint), + '--indexfile=%s' % index_path] + index_opts = ['--no-check-device', '--indexfile=%s' % index_path] reparent = (mountpoint, AbsPath(snapshot_mount)) dirs = [str(d.reparent(*reparent)) for d in dirs] excludes = [str(d.reparent(*reparent)) for d in excludes] |