simplify example

This commit is contained in:
cvlc12 2024-10-03 21:25:55 +02:00
parent c100b5bded
commit 521a75320c

View File

@ -41,15 +41,15 @@ Save your passwords as encrypted credentials to `/etc/credstore.encrypted/borgpw
# systemd-ask-password -n | systemd-creds encrypt --name=borgpw_backupserver2 - /etc/credstore.encrypted/borgpw/backupserver2
...
```
Ensure that the file names, (e.g. backupserver1) match the corresponding part of the `--name` option *after* the underscore (_),
and that the folder name matches the part *before* the underscore.
Ensure that the file names, (e.g. backupserver1) match the corresponding part of
the `--name` option *after* the underscore (_), and that the folder name matches
the part *before* the underscore.
Then uncomment or use the following in your configuration file:
Then uncomment or use the following in your configuration file. Adjust `borgpw_backupserver1`
according to the name given to the credential.
```yaml
encryption_passcommand: "cat ${CREDENTIALS_DIRECTORY}/borgpw_backupserver1"
encryption_passcommand: "cat ${CREDENTIALS_DIRECTORY}/borgpw_backupserver2"
...
```
### Environment variable interpolation