summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg/copy.py
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-17 17:37:24 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-17 17:37:24 +0100
commit916625b69b697617e695ccfd3ff28055d2007004 (patch)
tree26556b6b2048fe2931acbc4ce02e89b969e4389e /hosts/vidhar/borg/copy.py
parent25579e3b53ad328493ed28a930549e56907adf59 (diff)
downloadnixos-916625b69b697617e695ccfd3ff28055d2007004.tar
nixos-916625b69b697617e695ccfd3ff28055d2007004.tar.gz
nixos-916625b69b697617e695ccfd3ff28055d2007004.tar.bz2
nixos-916625b69b697617e695ccfd3ff28055d2007004.tar.xz
nixos-916625b69b697617e695ccfd3ff28055d2007004.zip
vidhar: ...
Diffstat (limited to 'hosts/vidhar/borg/copy.py')
-rwxr-xr-xhosts/vidhar/borg/copy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py
index 1f65d053..809184a3 100755
--- a/hosts/vidhar/borg/copy.py
+++ b/hosts/vidhar/borg/copy.py
@@ -177,7 +177,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry):
177 continue 177 continue
178 178
179 t = '' 179 t = ''
180 if 'time' in json_line: 180 if 'time' in json_line and stderr.isatty():
181 ts = datetime.fromtimestamp(json_line['time']).replace(tzinfo=tzlocal()) 181 ts = datetime.fromtimestamp(json_line['time']).replace(tzinfo=tzlocal())
182 t = f'{ts.isoformat(timespec="minutes")} ' 182 t = f'{ts.isoformat(timespec="minutes")} '
183 if json_line['type'] == 'archive_progress': 183 if json_line['type'] == 'archive_progress':