stevegrunwell / asimov

Automatically exclude development dependencies from Apple Time Machine backups
MIT License
1.62k stars 93 forks source link

Skip already excluded directories #97

Open VladRassokhin opened 1 month ago

VladRassokhin commented 1 month ago

I've a ~/development/project directory which is manually marked as excluded from Time Machine. Previously asimov would iterate over its subdirectories, now it won't.

Also, subsequent runs could benefit from that feature.

Using mdfind instead of find "${ASIMOV_ROOT}" -type d -xattrname "com.apple.metadata:com_apple_backup_excludeItem" -prune -print as it's superfast. Though it has a downside: some excluded directories are not reported.