From 5a1564df62434b8c98dc6e3f5ee5eecc2c69b9d6 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 18 Feb 2022 12:43:27 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'hosts') 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): create_args += ['--files-cache=disabled'] create_args += [f'{dst_repo_path}::{entry["name"]}', '.'] - subprocess.run(['ls', '-lhaF', dir], preexec_fn=lambda: as_borg(caps={Cap.DAC_READ_SEARCH}), check=True) - os._exit(0) - 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: last_list = None last_list_time = None -- cgit v1.2.3