From 4eef6178e4314f7b27b55293db5a3a240b17a9ca Mon Sep 17 00:00:00 2001 From: Abhijeet Date: Mon, 24 Feb 2025 17:18:58 +0100 Subject: [PATCH] add {unixtime} placeholder, fixes #8522 --- src/borg/helpers/parseformat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/borg/helpers/parseformat.py b/src/borg/helpers/parseformat.py index 705b4e290..172d08449 100644 --- a/src/borg/helpers/parseformat.py +++ b/src/borg/helpers/parseformat.py @@ -280,6 +280,7 @@ def _replace_placeholders(text, overrides={}): "hostname": hostname, "now": DatetimeWrapper(current_time.astimezone()), "utcnow": DatetimeWrapper(current_time), + "unixtime": int(current_time.timestamp()), "user": getosusername(), "uuid4": str(uuid.uuid4()), "borgversion": borg_version,