mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-22 02:03:01 +02:00
1.8 KiB
1.8 KiB
title, eleventyNavigation
| title | eleventyNavigation | ||||
|---|---|---|---|---|---|
| Credentials |
|
New in version 1.9.10 Several
borgmatic options support reading their values directly from an external
credential store or service. To take advantage of this feature, use {credential ...} syntax wherever you'd like borgmatic to read in a credential (for
supported options). In borgmatic's configuration, this looks like:
option: "{credential type ...}"
... where:
optionis the name of the configuration option being settypeis the source of the credential, one of:container: Container secretsfile: File-based credentialskeepassxc: KeePassXC passwordssystemd: systemd service credentials
- "
..." provides additional arguments specific to the selected credential type
For example:
encryption_passphrase: "{credential systemd borgmatic.pw}"
The {credential ...} syntax works for several different options in a borgmatic
configuration file besides just encryption_passphrase. For instance, the
username, password, and API token options within database and monitoring hooks
support {credential ...}:
postgresql_databases:
- name: invoices
username: postgres
password: "{credential systemd borgmatic_db1}"
For details about which options support the use of {credential ...} syntax,
see the configuration
reference.