summaryrefslogtreecommitdiff
path: root/yarns/0030-basics.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-01-25 21:46:17 +0000
committerLars Wirzenius <liw@liw.fi>2014-01-25 21:46:17 +0000
commitca69a5ced17d7fb7126f4ea7b82ee61d3c7de924 (patch)
tree7b92189833bb1454431b3831ea53cf3cdb52916d /yarns/0030-basics.yarn
parent50aa0bdf8c7e13a7fd76db4c2236c14ba7c4b861 (diff)
downloadobnam-ca69a5ced17d7fb7126f4ea7b82ee61d3c7de924.tar.gz
Convert restores-single-file to a yarn
Diffstat (limited to 'yarns/0030-basics.yarn')
-rw-r--r--yarns/0030-basics.yarn14
1 files changed, 14 insertions, 0 deletions
diff --git a/yarns/0030-basics.yarn b/yarns/0030-basics.yarn
index e7492297..a2ae12fa 100644
--- a/yarns/0030-basics.yarn
+++ b/yarns/0030-basics.yarn
@@ -114,6 +114,20 @@ backup, if the backup finishes successfully.
WHEN user U backs up directory L to repository R
THEN user U sees no checkpoint generations in repository R
+Restore a single file
+---------------------
+
+We need to be able to restore only a single file.
+
+ SCENARIO restore a single file
+ GIVEN a file F in L, with data
+ AND a manifest of directory L in M
+ AND 100kB of new data in directory L
+ AND manifest M has Mtime for the first entry set from L
+ WHEN user U backs up directory L to repository R
+ AND user U restores file L/F to X from their latest generation in repository R
+ THEN L, restored to X, matches manifest M
+
Pretend backing up: the `--pretend` setting
-------------------------------------------