Man page - borg-placeholders(1)
Packages contains this manual
- borg-delete(1)
- borg-key-export(1)
- borg-recreate(1)
- borg-compact(1)
- borg-benchmark(1)
- borg-config(1)
- borg-change-passphrase(1)
- borg-import-tar(1)
- borg-check(1)
- borg-extract(1)
- borg-info(1)
- borg-rename(1)
- borg-key-import(1)
- borg-compression(1)
- borg-init(1)
- borg-export-tar(1)
- borg-prune(1)
- borg-mount(1)
- borg(1)
- borg-benchmark-crud(1)
- borg-key(1)
- borgbackup(1)
- borg-version(1)
- borg-with-lock(1)
- borg-key-change-passphrase(1)
- borg-serve(1)
- borg-patterns(1)
- borg-diff(1)
- borg-umount(1)
- borg-break-lock(1)
- borg-placeholders(1)
- borg-key-migrate-to-repokey(1)
- borg-create(1)
- borgfs(1)
- borg-common(1)
- borg-upgrade(1)
- borg-list(1)
- borg-transfer(1)
- borg-delete(1)
- borg-benchmark-cpu(1)
- borg-key-export(1)
- borg-recreate(1)
- borg-compact(1)
- borg-repo-info(1)
- borg-repo-compress(1)
- borg-benchmark(1)
- borg-import-tar(1)
- borg-tag(1)
- borg-check(1)
- borg-extract(1)
- borg-info(1)
- borg-rename(1)
- borg-key-import(1)
- borg-compression(1)
- borg-export-tar(1)
- borg-analyze(1)
- borg-prune(1)
- borg-repo-list(1)
- borg-mount(1)
- borg(1)
- borg-benchmark-crud(1)
- borg-repo-create(1)
- borg-key(1)
- borg-version(1)
- borg-with-lock(1)
- borg-key-change-passphrase(1)
- borg-serve(1)
- borg-patterns(1)
- borg-repo-space(1)
- borg-diff(1)
- borg-umount(1)
- borg-undelete(1)
- borg-break-lock(1)
- borg-key-change-location(1)
- borg-placeholders(1)
- borg-create(1)
- borgfs(1)
- borg-common(1)
- borg-repo-delete(1)
- borg-list(1)
- borg-match-archives(1)
apt-get install borgbackup
apt-get install borgbackup-is-borgbackup2
Manual
BORG-PLACEHOLDERS
NAMEDESCRIPTION
AUTHOR
NAME
borg-placeholders - Details regarding placeholders
DESCRIPTION
Repository (or
Archive) URLs,
--prefix
,
--glob-archives
,
--comment
and
--remote-path
values support
these placeholders:
{hostname}
The (short) hostname of the machine.
|
{fqdn} |
The full name of the machine. |
{reverse-fqdn}
The full name of the machine in reverse domain name notation.
|
{now} |
The current local date and time, by default in ISO-8601 format. You can also supply your own format string , e.g. {now:%Y-%m-%d_%H:%M:%S} |
{utcnow}
The current UTC date and time, by default in ISO-8601 format. You can also supply your own format string , e.g. {utcnow:%Y-%m-%d_%H:%M:%S}
|
{user} |
The user name (or UID, if no name is available) of the user running borg. |
||
|
{pid} |
The current process ID. |
{borgversion}
The version of borg, e.g.: 1.0.8rc1
{borgmajor}
The version of borg, only the major version, e.g.: 1
{borgminor}
The version of borg, only major and minor version, e.g.: 1.0
{borgpatch}
The version of borg, only major, minor and patch version, e.g.: 1.0.8
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} ).
AUTHOR
The Borg Collective