More specific includes/excludes should take priority over less specific

Bug #514928 reported by Aaron Whitehouse
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Déjà Dup
Fix Released
Medium
Michael Terry

Bug Description

I have a folder called "Videos" that includes a lot of large videos that I do not want to back up. Within this, however, is a folder called "Home Videos" that I do want to back up.

I have set "Videos" as an exclude and "/Videos/Home Videos" as an include. I expected "Home Videos" to be backed up, but it does not seem to be.

I would expect that the exclude/include status of a subdirectory would always take precedence over the exclude/include status of the parent directory.

Imagine the below directory tree ([i] meaning in the include list, [e] meaning in the exclude list):
/home/fakeuser[i]:
-Pictures
--1.img
--2.img
-Videos[e]
--DVDs
---dvd.iso
---otherrippeddvd.iso
--Home Videos[i]
---video1.iso
---video2.iso
---Fuzzy[e]
----video33.iso
----video43.iso
----Bestoftheworst[i]
-----video222.iso
-----bob.iso
-test.txt

Should include:
/home/fakeuser/Pictures/1.img
/home/fakeuser/Pictures/2.img
/home/fakeuser/Videos/Home Videos/video1.iso
/home/fakeuser/Videos/Home Videos/video2.iso
/home/fakeuser/Videos/Home Videos/Fuzzy/Bestoftheworst/video222.iso
/home/fakeuser/Videos/Home Videos/Fuzzy/Bestoftheworst/bob.iso
/home/fakeuser/test.txt

And exclude:
/home/fakeuser/Videos/DVDs/dvd.iso
/home/fakeuser/Videos/DVDs/otherrippeddvd.iso
/home/fakeuser/Videos/Home Videos/Fuzzy/video33.iso
/home/fakeuser/Videos/Home Videos/Fuzzy/video43.iso

Revision history for this message
Michael Terry (mterry) wrote :

BTW, thanks for all the great bugs, RFEs, and questions, Aaron! :)

Changed in deja-dup:
importance: Undecided → Medium
status: New → Confirmed
Michael Terry (mterry)
Changed in deja-dup:
assignee: nobody → Michael Terry (mterry)
milestone: none → 13.92
status: Confirmed → Fix Committed
Revision history for this message
Aaron Whitehouse (aaron-whitehouse) wrote :

That's excellent news -- and so quick!

I'll look forward to testing this in the future version.

Michael Terry (mterry)
Changed in deja-dup:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.