Exclude node_modules folders from MacOS Time Machine

What is the problem?

Existing Solutions




npm wrapper

What API is used by this tools?

mkdir "not_backuped"xattr "not_backuped"
tmutil addexclusion "$(pwd)/not_backuped"tmutil isexcluded "$(pwd)/not_backuped"xattr "not_backuped"

Is this item excluded?

Find excluded Folders

find ~/my-projects -xattrname "com.apple.metadata:com_apple_backup_excludeItem" -type d -prune

Remove Items from being excluded

Simple Solution

Originally published at https://www.heissenberger.at.

Fast-track professional successful in the design, development and deployment of technology strategies and policy. Experienced leading Internet and IS operations