summaryrefslogtreecommitdiff
path: root/obnam.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-11-27 09:57:54 +0200
committerLars Wirzenius <liw@liw.fi>2021-11-27 11:21:16 +0200
commit9dcd23354ec74daf4000ec40bd52a33341a16cd8 (patch)
tree7a88381b98637fa723f699feb6ad40a2725b1ace /obnam.md
parent8d00d6e452638cbb5418887d0057b95d777a8fa0 (diff)
downloadobnam2-9dcd23354ec74daf4000ec40bd52a33341a16cd8.tar.gz
feat! turn errors from backup root directory into errors
Previously an error from, say, a missing backup root directory was reported to the user as a warning. Turn it into an error. However, errors reading a file or directory inside the backup root should still be just a warning. Sponsored-by: author
Diffstat (limited to 'obnam.md')
-rw-r--r--obnam.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/obnam.md b/obnam.md
index 6a84f0b..97f6183 100644
--- a/obnam.md
+++ b/obnam.md
@@ -1337,6 +1337,26 @@ roots: [live]
~~~
+## Backup root must exist
+
+This scenario verifies that Obnam correctly reports an error if a
+backup root directory doesn't exist.
+
+~~~scenario
+given a working Obnam system
+and a client config based on missingroot.yaml
+and a file live/data.dat containing some random data
+when I try to run obnam backup
+then command fails
+then stderr contains "does-not-exist"
+~~~
+
+~~~{#missingroot.yaml .file .yaml .numberLines}
+verify_tls_cert: false
+roots: [live, does-not-exist]
+~~~
+
+
## Back up regular file
The scenarios in this section back up a single regular file each, and