Document validate-borgmatic-config and add a few tests.
All checks were successful
the build was successful

This commit is contained in:
2019-05-11 14:05:16 -07:00
parent 6a10022543
commit 8650a15db1
7 changed files with 80 additions and 40 deletions

View File

@@ -76,7 +76,21 @@ FAQ](http://borgbackup.readthedocs.io/en/stable/faq.html#how-can-i-specify-the-e
for more info.
###
### Validation
If you'd like to validate that your borgmatic configuration is valid, the
following command is available for that:
```bash
sudo validate-borgmatic-config
```
This command's exit status (`$?` in Bash) is zero when configuration is valid
and non-zero otherwise.
Validating configuration can be useful if you generate your configuration
files via configuration management, or you just want to double check that your
hand edits are valid.
## Initialization