Script to exclude node_modules in projects folder from Time Machine backup
Last active
May 16, 2018 21:07
-
-
Save smikheiev/2e80ed1c7eab83b0cdbdeba97504c31b to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/zsh | |
cd ~/projects | |
find `pwd` -maxdepth 3 -type d -name 'node_modules' | xargs -n 1 tmutil addexclusion | |
mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'" | grep "node_modules" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment