BORG-PLACEHOLDERS(1) | borg backup tool | BORG-PLACEHOLDERS(1) |
borg-placeholders - Details regarding placeholders
Repository URLs, --name, -a / --match-archives, --comment and --remote-path values support these placeholders:
If literal curly braces need to be used, double them for escaping:
borg create /path/to/repo::{{literal_text}}
Examples:
borg create /path/to/repo::{hostname}-{user}-{utcnow} ... borg create /path/to/repo::{hostname}-{now:%Y-%m-%d_%H:%M:%S%z} ... borg prune -a 'sh:{hostname}-*' ...
NOTE:
When invoking borg from unit files, pay particular attention to escaping, especially when using the now/utcnow placeholders, since systemd performs its own %-based variable replacement even in quoted text. To avoid interference from systemd, double all percent signs ({hostname}-{now:%Y-%m-%d_%H:%M:%S} becomes {hostname}-{now:%%Y-%%m-%%d_%%H:%%M:%%S}).
The Borg Collective
2023-03-01 |