From 8e6dc52a8a17751f97bcb352745e8ad515414a2a Mon Sep 17 00:00:00 2001 From: Abhijeet Date: Sat, 1 Mar 2025 11:17:13 +0100 Subject: [PATCH] Fix #8522: Add {unixtime} placeholders (1.4-maint) (#8675) --- 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 a0fcdd9b9..d451dee67 100644 --- a/src/borg/helpers/parseformat.py +++ b/src/borg/helpers/parseformat.py @@ -218,6 +218,7 @@ def replace_placeholders(text, overrides={}): 'hostname': hostname, 'now': DatetimeWrapper(current_time.astimezone(None)), 'utcnow': DatetimeWrapper(current_time), + 'unixtime': int(current_time.timestamp()), 'user': getosusername(), 'uuid4': str(uuid.uuid4()), 'borgversion': borg_version,