diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-18 11:49:07 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-18 11:49:07 +0100 |
commit | f2b29b66704ae840123e6781b2cd133008a643d7 (patch) | |
tree | d2e33109245e4b28609b0cd2f85a29643db342eb | |
parent | 3b1c49ea07255ad87a1e9c0b1bc9eaad1693751d (diff) | |
download | nixos-f2b29b66704ae840123e6781b2cd133008a643d7.tar nixos-f2b29b66704ae840123e6781b2cd133008a643d7.tar.gz nixos-f2b29b66704ae840123e6781b2cd133008a643d7.tar.bz2 nixos-f2b29b66704ae840123e6781b2cd133008a643d7.tar.xz nixos-f2b29b66704ae840123e6781b2cd133008a643d7.zip |
vidhar: ...
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 1714e2e8..7564378c 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py | |||
@@ -56,7 +56,7 @@ def as_borg(caps=set()): | |||
56 | def read_repo(path): | 56 | def read_repo(path): |
57 | with Halo(text=f'Listing {path}', **halo_args) as sp: | 57 | with Halo(text=f'Listing {path}', **halo_args) as sp: |
58 | res = None | 58 | res = None |
59 | with subprocess.Popen(['borg', 'list', '--info', '--lock-wait=600', '--json', path], stdout=subprocess.PIPE, preexec_fn=lambda: as_borg()) as proc: | 59 | with subprocess.Popen(['borg', 'list', '--debug', '--lock-wait=600', '--json', path], stdout=subprocess.PIPE, preexec_fn=lambda: as_borg()) as proc: |
60 | res = json.load(proc.stdout)['archives'] | 60 | res = json.load(proc.stdout)['archives'] |
61 | if sp.enabled: | 61 | if sp.enabled: |
62 | sp.succeed(f'{len(res)} archives in {path}') | 62 | sp.succeed(f'{len(res)} archives in {path}') |