pauldreik / rdfind

find duplicate files utility
Other
951 stars 77 forks source link

Any way to exclude certain multiple folders when checking for duplicates ? #147

Open LxHobbist opened 9 months ago

LxHobbist commented 9 months ago

When trying to find duplicates in my External Hard drive, I want to exclude certain multiple folders. Any way to do this ? Really, love the tool ! if it is not possible, can you please add this as a feature for future enhancements ? Thank you !

seal20 commented 7 months ago

Would be very useful indeed. I am trying to run rdfind on a btrfs subvolumes that is snapshotted frequently, and rdfind will go within all snapshots ending up with hundreds of terabytes to scan. A simple --exclude */.snapshots would solve this problem. Maybe some options using inodes could be used but I am not sure on how cow filesystem link snapshots. At the moment, I have to put all individual folders nu snapshots as a list. Thanks

whoschek commented 4 months ago

I agree! In addition would be great to exclude all files (not just directories) that match at least one of a given set of file name patterns, for example: --exclude '*/*/*.txt' --exclude '*.bak'