summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-18 11:49:07 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-18 11:49:07 +0100
commitf2b29b66704ae840123e6781b2cd133008a643d7 (patch)
treed2e33109245e4b28609b0cd2f85a29643db342eb /hosts
parent3b1c49ea07255ad87a1e9c0b1bc9eaad1693751d (diff)
downloadnixos-f2b29b66704ae840123e6781b2cd133008a643d7.tar
nixos-f2b29b66704ae840123e6781b2cd133008a643d7.tar.gz
nixos-f2b29b66704ae840123e6781b2cd133008a643d7.tar.bz2
nixos-f2b29b66704ae840123e6781b2cd133008a643d7.tar.xz
nixos-f2b29b66704ae840123e6781b2cd133008a643d7.zip
vidhar: ...
Diffstat (limited to 'hosts')
-rwxr-xr-xhosts/vidhar/borg/copy.py2
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()):
56def read_repo(path): 56def 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}')