From 6cf7b79ca4d2eec8b22a573f677d7d86d590402c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 13 Oct 2023 13:52:53 +0200 Subject: targets:TargetSSHLVM: use a per-target index file on the remote --- lbup/targets.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lbup') 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] -- cgit v1.2.3