summaryrefslogtreecommitdiff
path: root/obnam.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-04-22 18:01:09 +0300
committerLars Wirzenius <liw@liw.fi>2021-04-25 19:24:46 +0300
commit0d8094967d7b07c832f798756e2b6d5609e7babc (patch)
tree05165cca7a58f980e5da3fe41b1890808f37072a /obnam.md
parentfef7f220e2385ccfb423201958021a33c26b69c9 (diff)
downloadobnam2-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.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/obnam.md b/obnam.md
index e788d96..3050463 100644
--- a/obnam.md
+++ b/obnam.md
@@ -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