summaryrefslogtreecommitdiff
path: root/obnam.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-01-04 18:03:04 +0000
committerLars Wirzenius <liw@liw.fi>2021-01-04 18:03:04 +0000
commit678e65c57ae983ef66d16e92965814b0f3f0d73f (patch)
tree260f2edd09047de5843a168ce59f284ac3445ce7 /obnam.md
parent6c00201a0aaf75071388981591d76bebdc7b1f03 (diff)
parent34a9fc7cf754552b02b194f7e1186adc9414a623 (diff)
downloadobnam2-678e65c57ae983ef66d16e92965814b0f3f0d73f.tar.gz
Merge branch 'checksum' into 'main'
Checksum See merge request larswirzenius/obnam!61
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 0c4ab50..accfca2 100644
--- a/obnam.md
+++ b/obnam.md
@@ -976,6 +976,26 @@ when I run obnam --config smoke.yaml list-files
then file live/data.dat was backed up because it was changed
~~~
+## Checksum verification
+
+Each chunk has metadata with the checksum of the chunk contents. This
+scenario verifies that the client checks the contents hasn't been
+modified.
+
+~~~scenario
+given an installed obnam
+and a running chunk server
+and a client config based on smoke.yaml
+and a file live/data.dat containing some random data
+when I run obnam --config smoke.yaml backup
+then backup generation is GEN
+when I invoke obnam --config smoke.yaml get-chunk <GEN>
+then exit code is 0
+when chunk <GEN> on chunk server is replaced by an empty file
+when I invoke obnam --config smoke.yaml get-chunk <GEN>
+then command fails
+~~~
+
## Tricky filenames
Obnam needs to handle all filenames the underlying operating and file