diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 13:51:57 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 13:51:57 +0100 |
commit | 362ff67a0e958ec0d06ff223c73d57cd20310c77 (patch) | |
tree | 9ba62cebf796b23fe3439901abafdd6336cb567e /hosts | |
parent | 8efca8eff9d8399908dc06432e37642d4b9ce456 (diff) | |
download | nixos-362ff67a0e958ec0d06ff223c73d57cd20310c77.tar nixos-362ff67a0e958ec0d06ff223c73d57cd20310c77.tar.gz nixos-362ff67a0e958ec0d06ff223c73d57cd20310c77.tar.bz2 nixos-362ff67a0e958ec0d06ff223c73d57cd20310c77.tar.xz nixos-362ff67a0e958ec0d06ff223c73d57cd20310c77.zip |
vidhar: ...
Diffstat (limited to 'hosts')
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 1 |
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) |