diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-12-30 15:06:30 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-12-30 15:25:49 +0200 |
commit | 6bc74795a009a35a0c1a27426b619b9f20a2db8e (patch) | |
tree | 682655b00b49a3ad477cfee0b4271344e30b3170 /obnam.md | |
parent | 776b2c134c3096b8a7cf1742cbcda13f0527e415 (diff) | |
download | obnam2-6bc74795a009a35a0c1a27426b619b9f20a2db8e.tar.gz |
feat: allow restoring latest generation
Diffstat (limited to 'obnam.md')
-rw-r--r-- | obnam.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -896,6 +896,29 @@ given a manifest of the directory live restored in rest in rest.yaml then files live.yaml and rest.yaml match ~~~ +## Restore latest generation + +This scenario verifies that the latest backup generation can be +specified with literal string "latest". It makes two backups, which +are different. + +~~~scenario +given an installed obnam +and a running chunk server +and a client config based on metadata.yaml + +given a file live/data.dat containing some random data +when I run obnam --config metadata.yaml backup + +given a file live/more.dat containing some random data +and a manifest of the directory live in second.yaml +when I run obnam --config metadata.yaml backup + +when I invoke obnam --config metadata.yaml restore latest rest +given a manifest of the directory live restored in rest in rest.yaml +then files second.yaml and rest.yaml match +~~~ + |