0

Ii need to backup my devprojects folder, but it contains a subfolder for every project and most of the projects have a node_modules folder that has many many files and this is causing my backups to be extremely slow.

Any ideas on how to copy my data without the node_modules folders. I do not really need it at all.

This is the script that I am using now. However, it does not work as expected. I assume just one node_modules is excluded. Others still get copied:

rsync -av --progress -exclude="node_modules" source destination
0

You are missing a - before -exclude. The correct command is:

rsync -av --progress --exclude="node_modules" source destination
  • OMG. Thanks ! Works now – Etika49 Jul 25 '20 at 8:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.