rdfind icon indicating copy to clipboard operation
rdfind copied to clipboard

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

Open LxHobbist opened this issue 1 year ago • 2 comments

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 !

LxHobbist avatar Dec 15 '23 07:12 LxHobbist

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

seal20 avatar Feb 19 '24 09:02 seal20

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'

whoschek avatar Apr 22 '24 17:04 whoschek