0

Is it possible to exclude node_modules when backing up files to an external HD?

I'm wondering if there is a flag that I could pass on the terminal to copy all files but node_modules from my machine to an external HD. Something like a .gitignore before pushing code to a remote repo for instance.

I'm using a mac.

Kara
  • 6,115
  • 16
  • 50
  • 57
Null isTrue
  • 1,882
  • 6
  • 26
  • 46
  • You might check out this post https://stackoverflow.com/questions/2193584/copy-folder-recursively-excluding-some-folders?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa – Sean Gregory Apr 19 '18 at 15:00
  • Thank you Sean. will check it out. – Null isTrue Apr 19 '18 at 15:03

0 Answers0