How to add the node_modules folder paths to time machine ignore paths. These folders are like tmp data for backups. These are very dense folders and also slow down TM. Is there is a txt file which can be appended? Maybe a command line which can append to the config.
There're several approaches mentioned in this gist.
find `pwd` -type d -maxdepth 3 -name 'node_modules' | xargs -n 1 tmutil addexclusion
tmignorewhich automatically finds all Git repositories on your disk and excludes all paths matching
.gitignorefiles. I've just tried it and it works great. You can also set up a script to check your disk periodically.