From f49ccfdb11d022fdf18b578aa8f702f24144af61 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 11 Mar 2014 19:13:08 +0000 Subject: Add yarn for no-op backups --- yarns/0030-basics.yarn | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'yarns/0030-basics.yarn') 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 ----------------------- -- cgit v1.2.1