summaryrefslogtreecommitdiff
path: root/obnam.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-12-30 15:06:30 +0200
committerLars Wirzenius <liw@liw.fi>2020-12-30 15:25:49 +0200
commit6bc74795a009a35a0c1a27426b619b9f20a2db8e (patch)
tree682655b00b49a3ad477cfee0b4271344e30b3170 /obnam.md
parent776b2c134c3096b8a7cf1742cbcda13f0527e415 (diff)
downloadobnam2-6bc74795a009a35a0c1a27426b619b9f20a2db8e.tar.gz
feat: allow restoring latest generation
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 6706fb7..c3b03a8 100644
--- a/obnam.md
+++ b/obnam.md
@@ -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
+~~~
+