diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-18 12:42:05 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-18 12:42:05 +0100 |
commit | ee1165aa5f8f7c418550ab214e009b7fdf42f61d (patch) | |
tree | 03d65b5444cec082d1a35a4e3f8ee25ba69109f7 | |
parent | 9f22116f714cbc86da8a1cff6c7b8625f5d773ca (diff) | |
download | nixos-ee1165aa5f8f7c418550ab214e009b7fdf42f61d.tar nixos-ee1165aa5f8f7c418550ab214e009b7fdf42f61d.tar.gz nixos-ee1165aa5f8f7c418550ab214e009b7fdf42f61d.tar.bz2 nixos-ee1165aa5f8f7c418550ab214e009b7fdf42f61d.tar.xz nixos-ee1165aa5f8f7c418550ab214e009b7fdf42f61d.zip |
vidhar: ...
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index c0f17a5b..66f077ae 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py | |||
@@ -186,6 +186,10 @@ def copy_archive(src_repo_path, dst_repo_path, entry): | |||
186 | else: | 186 | else: |
187 | create_args += ['--files-cache=disabled'] | 187 | create_args += ['--files-cache=disabled'] |
188 | create_args += [f'{dst_repo_path}::{entry["name"]}', '.'] | 188 | create_args += [f'{dst_repo_path}::{entry["name"]}', '.'] |
189 | |||
190 | subprocess.run(['ls', '-lhaF', dir], preexec_fn=lambda: as_borg(caps={Cap.DAC_READ_SEARCH}), check=True) | ||
191 | os._exit(0) | ||
192 | |||
189 | with subprocess.Popen(create_args, cwd=dir, stdin=subprocess.DEVNULL, stderr=subprocess.PIPE, text=True, env=env, preexec_fn=lambda: as_borg(caps={Cap.DAC_READ_SEARCH})) as proc: | 193 | with subprocess.Popen(create_args, cwd=dir, stdin=subprocess.DEVNULL, stderr=subprocess.PIPE, text=True, env=env, preexec_fn=lambda: as_borg(caps={Cap.DAC_READ_SEARCH})) as proc: |
190 | last_list = None | 194 | last_list = None |
191 | last_list_time = None | 195 | last_list_time = None |