-
How-to guides
- π₯ Set up backups
- ποΈ Make per-application backups
- π Provide your passwords
- βοΈ Make backups redundant
- π Deal with very large backups
- π Inspect your backups
- π¨ Monitor your backups
- π€ Extract a backup
- ποΈ Backup your databases
- πΈ Snapshot your filesystems
- π§Ή Add preparation and cleanup steps
- πΎ Backup to a removable drive/server
- π§ Run arbitrary Borg commands
- π₯ Customize warnings/errors
- π¦ Upgrade borgmatic/Borg
- ποΈ Develop on borgmatic
-
Reference guides
- βοΈ Configuration
- π» Command-line
- π Source code
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.
Improve this documentation
Have an idea on how to make this documentation even better? Use our issue tracker to send your feedback!