Created
January 3, 2026 03:03
-
-
Save chrisDeFouRire/11d01f779cace88f53eee3cd47aa85a8 to your computer and use it in GitHub Desktop.
Find node_modules folders and exclude them from Time Machine backups
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -type d -name "node_modules" -prune -print0 | while IFS= read -r -d '' dir; do | |
| echo "Excluding: $dir" | |
| tmutil addexclusion "$dir" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment