csirac2 / snazzer

btrfs snapshotting and backup system offering snapshot measurement, transport and pruning.
BSD 2-Clause "Simplified" License
89 stars 9 forks source link

can't include child subvolumes that have an excluded parent subvolume #30

Closed florianjacob closed 7 years ago

florianjacob commented 8 years ago

Because the usage of grep -f, each line inside /etc/snazzer/exclude.patterns currently behaves like it would have been surrounded by _-globs, making tmp essentially the same as _tmp*.

This is an issue e.g. because you can't exclude parent subvolume without excluding all child subvolumes as well: In my setup, /home/florian is a subvolume I want to snapshot, but /home is also a subvolume to be able to mount all home directories with a single mount command, but I don't want /home to be snapshotted. With the current globbing, it's impossible to exclude /home without excluding /home/florian as well.

florianjacob commented 8 years ago

My take on resolving this: #31.

@csirac2 what do you think?