diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-22 18:01:09 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-25 19:24:46 +0300 |
commit | 0d8094967d7b07c832f798756e2b6d5609e7babc (patch) | |
tree | 05165cca7a58f980e5da3fe41b1890808f37072a /obnam.md | |
parent | fef7f220e2385ccfb423201958021a33c26b69c9 (diff) | |
download | obnam2-0d8094967d7b07c832f798756e2b6d5609e7babc.tar.gz |
feat: expand tilde notation in configuration file
Backup roots and log file can now say ~/foo/bar to refer to files
relative to the user's home directory.
Diffstat (limited to 'obnam.md')
-rw-r--r-- | obnam.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -1122,6 +1122,29 @@ encrypt: false ~~~ +## Client expands tildes in its configuration file + +This scenario verifies that the client expands tildes in pathnames in +its configuration file. + + +~~~scenario +given an installed obnam +and file tilde.yaml +when I run obnam --config tilde.yaml config +then stdout contains home directory followed by /important +then stdout contains home directory followed by /obnam.log +~~~ + +~~~{#tilde.yaml .file .yaml .numberLines} +roots: [~/important] +log: ~/obnam.log +server_url: https://backup.example.com +verify_tls_cert: true +encrypt: false +~~~ + + ## Client requires https This scenario verifies that the client rejects a configuration with a |