summaryrefslogtreecommitdiff
path: root/lbup
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-10-13 13:52:53 +0200
committerAnton Khirnov <anton@khirnov.net>2023-10-13 13:53:25 +0200
commit6cf7b79ca4d2eec8b22a573f677d7d86d590402c (patch)
tree1cd59b53b4d7cb44fbac5dc52000043a82877b9a /lbup
parentb877c3546f5e523df641e3d237cde34c31265c51 (diff)
targets:TargetSSHLVM: use a per-target index file on the remote
Diffstat (limited to 'lbup')
-rw-r--r--lbup/targets.py7
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]