summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-18 12:43:27 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-18 12:43:27 +0100
commit5a1564df62434b8c98dc6e3f5ee5eecc2c69b9d6 (patch)
treef07cb30f1e52758d5fd0205971fb840df45570a0 /hosts/vidhar/borg
parentee1165aa5f8f7c418550ab214e009b7fdf42f61d (diff)
downloadnixos-5a1564df62434b8c98dc6e3f5ee5eecc2c69b9d6.tar
nixos-5a1564df62434b8c98dc6e3f5ee5eecc2c69b9d6.tar.gz
nixos-5a1564df62434b8c98dc6e3f5ee5eecc2c69b9d6.tar.bz2
nixos-5a1564df62434b8c98dc6e3f5ee5eecc2c69b9d6.tar.xz
nixos-5a1564df62434b8c98dc6e3f5ee5eecc2c69b9d6.zip
vidhar: ...
Diffstat (limited to 'hosts/vidhar/borg')
-rwxr-xr-xhosts/vidhar/borg/copy.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py
index 66f077ae..694d2696 100755
--- a/hosts/vidhar/borg/copy.py
+++ b/hosts/vidhar/borg/copy.py
@@ -187,9 +187,6 @@ def copy_archive(src_repo_path, dst_repo_path, entry):
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 189
190 subprocess.run(['ls', '-lhaF', dir], preexec_fn=lambda: as_borg(caps={Cap.DAC_READ_SEARCH}), check=True)
191 os._exit(0)
192
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 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:
194 last_list = None 191 last_list = None
195 last_list_time = None 192 last_list_time = None