trapexit / mergerfs-tools

Optional tools to help manage data in a mergerfs pool
ISC License
385 stars 44 forks source link

Add --exclude-dir option to dedup tool #131

Closed FlexibleToast closed 1 year ago

FlexibleToast commented 1 year ago

Useful for people using snapraid-btrfs which relies on snapper creating read only snapshots. With this option the dedup tool can be passed the --exclude-dir .snapshot option and os.walk won't traverse the directory. In my test this reduced the time to run from 85 minutes to 4 minutes with 16 snapshots.

trapexit commented 1 year ago

A fnmatch based solution would be more flexible but if this works for you then fine by me.