diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 20:59:31 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 20:59:31 +0100 |
commit | 06f75748b67dc3e4fd47c4410eb097d320c69d08 (patch) | |
tree | 97e7c760a0cd52957432e2662a824a607207cc07 /hosts/vidhar/borg | |
parent | 4fe98995bd0ddc0ef16e2568c7253313f295176c (diff) | |
download | nixos-06f75748b67dc3e4fd47c4410eb097d320c69d08.tar nixos-06f75748b67dc3e4fd47c4410eb097d320c69d08.tar.gz nixos-06f75748b67dc3e4fd47c4410eb097d320c69d08.tar.bz2 nixos-06f75748b67dc3e4fd47c4410eb097d320c69d08.tar.xz nixos-06f75748b67dc3e4fd47c4410eb097d320c69d08.zip |
vidhar: ...
Diffstat (limited to 'hosts/vidhar/borg')
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 2 |
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']) |