rsync exclude command

 rsync -avh --exclude node_modules --exclude dist --exclude --build --exclude logs data-dir/ root@server-ip:/var/www/nodedoc/

or,

rsync -avz --exclude={node_modules,build,.config,.mozilla,.npm}  data-dir/ username@server-ip:/home/username/

Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment