From 6bc74795a009a35a0c1a27426b619b9f20a2db8e Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 30 Dec 2020 15:06:30 +0200 Subject: feat: allow restoring latest generation --- obnam.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'obnam.md') 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 +~~~ + -- cgit v1.2.1