summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/vidhar/borg')
-rwxr-xr-xhosts/vidhar/borg/copy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py
index 155ada7a..e574f2e0 100755
--- a/hosts/vidhar/borg/copy.py
+++ b/hosts/vidhar/borg/copy.py
@@ -64,6 +64,7 @@ class ToSync:
64 64
65 src = read_repo(args.source) 65 src = read_repo(args.source)
66 dst = read_repo(args.target) 66 dst = read_repo(args.target)
67 self.to_sync = set()
67 for entry in src: 68 for entry in src:
68 if entry['name'] not in {dst_entry['name'] for dst_entry in dst} and not entry['name'].endswith('.checkpoint'): 69 if entry['name'] not in {dst_entry['name'] for dst_entry in dst} and not entry['name'].endswith('.checkpoint'):
69 self.to_sync.add(entry) 70 self.to_sync.add(entry)