summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-18 14:44:54 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-18 14:44:54 +0100
commitce85857f206564f182344e30e89e83dc3f34ad51 (patch)
tree02a6f491e79a24033b83c1c1cbde28fdf57841f6 /hosts/vidhar/borg
parentc91403c61c287c7d1250b3308d0e6690d39e60d2 (diff)
downloadnixos-ce85857f206564f182344e30e89e83dc3f34ad51.tar
nixos-ce85857f206564f182344e30e89e83dc3f34ad51.tar.gz
nixos-ce85857f206564f182344e30e89e83dc3f34ad51.tar.bz2
nixos-ce85857f206564f182344e30e89e83dc3f34ad51.tar.xz
nixos-ce85857f206564f182344e30e89e83dc3f34ad51.zip
vidhar: ...
Diffstat (limited to 'hosts/vidhar/borg')
-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 f6d100be..2ee4761d 100755
--- a/hosts/vidhar/borg/copy.py
+++ b/hosts/vidhar/borg/copy.py
@@ -157,7 +157,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry):
157 else: 157 else:
158 print(f'{total_files} files, {naturalsize(total_size, binary=True)}', file=stderr) 158 print(f'{total_files} files, {naturalsize(total_size, binary=True)}', file=stderr)
159 # print(f'Mounting to {dir}', file=stderr) 159 # print(f'Mounting to {dir}', file=stderr)
160 with subprocess.Popen(['borg', 'mount', '-o', 'allow_other', '--foreground', '--progress', '--lock-wait=600', f'{src_repo_path}::{entry["name"]}', dir], preexec_fn=lambda: as_borg()) as mount_proc: 160 with subprocess.Popen(['borg', 'mount', '-o', 'allow_other,ignore_permissions', '--foreground', '--progress', '--lock-wait=600', f'{src_repo_path}::{entry["name"]}', dir], preexec_fn=lambda: as_borg()) as mount_proc:
161 with Halo(text='Waiting for mount', **halo_args) as sp: 161 with Halo(text='Waiting for mount', **halo_args) as sp:
162 wait_start = datetime.now() 162 wait_start = datetime.now()
163 while True: 163 while True: