![]() |
![]()
| ![]() |
![]()
NAMEborg-placeholders - Details regarding placeholders DESCRIPTIONRepository (or Archive) URLs, --prefix, --glob-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} ... borg prune --glob-archives '{hostname}-*' ... NOTE: systemd uses a difficult, non-standard syntax for command
lines in unit files (refer to the systemd.unit(5) manual page).
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}). AUTHORThe Borg Collective
|