summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-18 12:18:52 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-18 12:18:52 +0100
commit806cd06d4e66e2c552c619f43dba19b416438807 (patch)
tree442b831eded9f8d6d16143d840c8e33dc3f62205 /hosts/vidhar/borg
parentf1d7c34894ab160972b2d1b62ae483192d4e827f (diff)
downloadnixos-806cd06d4e66e2c552c619f43dba19b416438807.tar
nixos-806cd06d4e66e2c552c619f43dba19b416438807.tar.gz
nixos-806cd06d4e66e2c552c619f43dba19b416438807.tar.bz2
nixos-806cd06d4e66e2c552c619f43dba19b416438807.tar.xz
nixos-806cd06d4e66e2c552c619f43dba19b416438807.zip
vidhar: ...
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 e7d0becc..514cf7e5 100755
--- a/hosts/vidhar/borg/copy.py
+++ b/hosts/vidhar/borg/copy.py
@@ -145,6 +145,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry):
145 else: 145 else:
146 print(f'{total_files} files, {naturalsize(total_size, binary=True)}', file=stderr) 146 print(f'{total_files} files, {naturalsize(total_size, binary=True)}', file=stderr)
147 # print(f'Mounting to {dir}', file=stderr) 147 # print(f'Mounting to {dir}', file=stderr)
148 subprocess.run(['stat', dir], check=True)
148 with subprocess.Popen(['borg', 'mount', '--foreground', '--progress', '--lock-wait=600', f'{src_repo_path}::{entry["name"]}', dir], preexec_fn=lambda: as_borg()) as mount_proc: 149 with subprocess.Popen(['borg', 'mount', '--foreground', '--progress', '--lock-wait=600', f'{src_repo_path}::{entry["name"]}', dir], preexec_fn=lambda: as_borg()) as mount_proc:
149 with Halo(text='Waiting for mount', **halo_args) as sp: 150 with Halo(text='Waiting for mount', **halo_args) as sp:
150 wait_start = datetime.now() 151 wait_start = datetime.now()