summaryrefslogtreecommitdiff
path: root/yarns/0030-basics.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-08 20:50:02 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-08 21:04:24 +0100
commitdeebee352a92b6959fd41c914bb3eedea22ea740 (patch)
treed85fdd7f552557bed79e391497e3ece933231479 /yarns/0030-basics.yarn
parent2c440924e3ef26b27eef82ab8ce0c0a492ca3069 (diff)
downloadobnam-deebee352a92b6959fd41c914bb3eedea22ea740.tar.gz
Bugfix: excluded files stayed in new generation
Diffstat (limited to 'yarns/0030-basics.yarn')
-rw-r--r--yarns/0030-basics.yarn19
1 files changed, 19 insertions, 0 deletions
diff --git a/yarns/0030-basics.yarn b/yarns/0030-basics.yarn
index 22ca0f1d..4bc8439b 100644
--- a/yarns/0030-basics.yarn
+++ b/yarns/0030-basics.yarn
@@ -247,6 +247,25 @@ Time to backup.
AND user U restores their latest generation in repository R into X
THEN L, restored to X, matches manifest M
+Excluded, already backed up files, are not included in next generation
+----------------------------------------------------------------------
+
+Until Obnam version 1.7.4, but fixed after that, Obnam had a bug where
+a file that was not excluded became excluded was not removed from new
+backup generations. In other words, if file `foo` exists and is backed
+up, and the user then makes a new backup with `--exclude=foo`, the new
+backup generation still contains `foo`. This is clearly a bug. This
+scenario verifies that the bug no longer exists, and prevents it from
+recurring.
+
+ SCENARIO new generation drops excluded, previously backed up files
+ GIVEN a file foo in L, with data
+ WHEN user U backs up directory L to repository R
+ GIVEN user U sets configuration exclude to foo
+ WHEN user U backs up directory L to repository R
+ AND user U restores their latest generation in repository R into X
+ THEN L, restored to X, is empty
+
Changing backup roots
---------------------