summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg/copy.py
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-17 13:51:57 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-17 13:51:57 +0100
commit362ff67a0e958ec0d06ff223c73d57cd20310c77 (patch)
tree9ba62cebf796b23fe3439901abafdd6336cb567e /hosts/vidhar/borg/copy.py
parent8efca8eff9d8399908dc06432e37642d4b9ce456 (diff)
downloadnixos-362ff67a0e958ec0d06ff223c73d57cd20310c77.tar
nixos-362ff67a0e958ec0d06ff223c73d57cd20310c77.tar.gz
nixos-362ff67a0e958ec0d06ff223c73d57cd20310c77.tar.bz2
nixos-362ff67a0e958ec0d06ff223c73d57cd20310c77.tar.xz
nixos-362ff67a0e958ec0d06ff223c73d57cd20310c77.zip
vidhar: ...
Diffstat (limited to 'hosts/vidhar/borg/copy.py')
-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)