diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-01-04 18:03:04 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-01-04 18:03:04 +0000 |
commit | 678e65c57ae983ef66d16e92965814b0f3f0d73f (patch) | |
tree | 260f2edd09047de5843a168ce59f284ac3445ce7 /obnam.md | |
parent | 6c00201a0aaf75071388981591d76bebdc7b1f03 (diff) | |
parent | 34a9fc7cf754552b02b194f7e1186adc9414a623 (diff) | |
download | obnam2-678e65c57ae983ef66d16e92965814b0f3f0d73f.tar.gz |
Merge branch 'checksum' into 'main'
Checksum
See merge request larswirzenius/obnam!61
Diffstat (limited to 'obnam.md')
-rw-r--r-- | obnam.md | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 |