diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-10-13 13:52:53 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-10-13 13:53:25 +0200 |
commit | 6cf7b79ca4d2eec8b22a573f677d7d86d590402c (patch) | |
tree | 1cd59b53b4d7cb44fbac5dc52000043a82877b9a /lbup | |
parent | b877c3546f5e523df641e3d237cde34c31265c51 (diff) |
targets:TargetSSHLVM: use a per-target index file on the remote
Diffstat (limited to 'lbup')
-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] |