summaryrefslogtreecommitdiff
path: root/hosts/vidhar
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/vidhar')
-rwxr-xr-xhosts/vidhar/borg/copy.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py
index d58b6060..0f39b495 100755
--- a/hosts/vidhar/borg/copy.py
+++ b/hosts/vidhar/borg/copy.py
@@ -203,6 +203,8 @@ def copy_archive(src_repo_path, dst_repo_path, entry):
203 last_list = f'{json_line["status"]} {json_line["path"]}' 203 last_list = f'{json_line["status"]} {json_line["path"]}'
204 last_list_time = datetime.now() 204 last_list_time = datetime.now()
205 progress.set_description(last_list, refresh=False) 205 progress.set_description(last_list, refresh=False)
206 if not stderr.isatty():
207 print(last_list, file=stderr)
206 elif (json_line['type'] == 'log_message' or json_line['type'] == 'progress_message' or json_line['type'] == 'progress_percent') and ('message' in json_line or 'msgid' in json_line): 208 elif (json_line['type'] == 'log_message' or json_line['type'] == 'progress_message' or json_line['type'] == 'progress_percent') and ('message' in json_line or 'msgid' in json_line):
207 if 'message' in json_line: 209 if 'message' in json_line:
208 tqdm.write(t + json_line['message']) 210 tqdm.write(t + json_line['message'])