Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Exclude node_modules in timemachine, use launchd to scan the Project directory on a regular basis, for example meanwhile you are having siesta. Put this file in ~/Library/LaunchAgents and call `launchctl load ~/Library/LaunchAgents/com.user.time-machine-exclude-node-modules-job.plist`
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>cd "$HOME/Projects" &amp;&amp; find $(pwd) -type d -name node_modules -maxdepth 8 -exec tmutil addexclusion {} \;</string>
<!-- Debug logging -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.