diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-03-11 19:13:08 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-03-11 19:13:08 +0000 |
commit | f49ccfdb11d022fdf18b578aa8f702f24144af61 (patch) | |
tree | 110436e7c25d68aa874c59868a3942b6728a54f9 /yarns/0030-basics.yarn | |
parent | d3b2d55b438b051c3d14ccc72968cc95d19e71c4 (diff) | |
download | obnam-f49ccfdb11d022fdf18b578aa8f702f24144af61.tar.gz |
Add yarn for no-op backups
Diffstat (limited to 'yarns/0030-basics.yarn')
-rw-r--r-- | yarns/0030-basics.yarn | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/yarns/0030-basics.yarn b/yarns/0030-basics.yarn index 7e4dffa2..88227fba 100644 --- a/yarns/0030-basics.yarn +++ b/yarns/0030-basics.yarn @@ -99,6 +99,32 @@ attribute value changes. AND user U restores their latest generation in repository R into X THEN L, restored to X, matches manifest M +Backup without changes +---------------------- + +If we run a backup, then a new one, then the new generation should +match the first one, and no files should be have been backed up in the +second generation. + + SCENARIO no-op backup + GIVEN a file F in L, with data + AND a manifest of L in M + WHEN user U backs up directory L to repository R + THEN L, restored to X, matches manifest M + +Remove the Obnam log file, so we only have the log from the next +backup run. + + WHEN user U removes file obnam.log + AND user U backs up directory L to repository R + +Note that Obnam always backs up the root directory, so we match +against one, not zero, below. + + THEN obnam.log matches INFO \* files backed up: 1$ + AND L, restored to X, matches manifest M + + Backup to roots at once ----------------------- |