Skip to content

Instantly share code, notes, and snippets.

@lemmon
Created September 7, 2017 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lemmon/16dfa6a2cad6bfc287d7b65f1124823c to your computer and use it in GitHub Desktop.
Save lemmon/16dfa6a2cad6bfc287d7b65f1124823c to your computer and use it in GitHub Desktop.
Time Machine

Exclude Dirs from TimeMachine

find ~/Sites -type d -maxdepth 3 -name 'node_modules' | sudo xargs tmutil addexclusion -p

View Current Settings

defaults read /Library/Preferences/com.apple.TimeMachine.plist

Remove Excluded Dirs

sudo defaults delete /Library/Preferences/com.apple.TimeMachine.plist ExcludeByPath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment