Search code examples
linuxunixubuntursyncscp

How do I skip a folder during rsync?


rsync -r -a -v -e ssh --delete /home/user/project user@ip:/home/user/

Right now, this is my command.

What if I want to skip the folder /home/user/project/src/node_modules/jquery ? I don't want that copied over.


Solution

  • --exclude /project/src/node_modules/jquery