summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-10 12:53:05 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-10 12:53:05 +0100
commit7dfdf54de426b995173cec67b40451f0b83d264a (patch)
tree0a9b7586cd20b095d7a5bd8e692ff5e99088a71d
parent3b9550363fe26f58ed8f26a4424e3d866240485c (diff)
downloadnixos-7dfdf54de426b995173cec67b40451f0b83d264a.tar
nixos-7dfdf54de426b995173cec67b40451f0b83d264a.tar.gz
nixos-7dfdf54de426b995173cec67b40451f0b83d264a.tar.bz2
nixos-7dfdf54de426b995173cec67b40451f0b83d264a.tar.xz
nixos-7dfdf54de426b995173cec67b40451f0b83d264a.zip
ymir: ...
-rwxr-xr-xsnap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/snap.py b/snap.py
index 49c1adaa..443b3bdb 100755
--- a/snap.py
+++ b/snap.py
@@ -64,7 +64,7 @@ def borg_lv(lv, target, archive_prefix, dry_run, **args):
64 archive_lvn=lvn 64 archive_lvn=lvn
65 if "/".join(vgp[:-1]) != archive_prefix.split('.')[-2]: 65 if "/".join(vgp[:-1]) != archive_prefix.split('.')[-2]:
66 archive_lvn=f'{"_".join(vgp[:-1])}_{archive_lvn}' 66 archive_lvn=f'{"_".join(vgp[:-1])}_{archive_lvn}'
67 archive=f'{target}::{archive_prefix}{archive_lvn}-{{utcnow}}' 67 archive=f'{target}::{archive_prefix}{archive_lvn}-{creation_time.strftime("%Y-%m-%dT%H:%M:%S")}'
68 68
69 env = os.environ.copy() 69 env = os.environ.copy()
70 create_args = ['borg', 70 create_args = ['borg',