I'm uploading a web page to my server and I simply want the rsync to ignore 3 things: The .git/ folder, my .gitignore file and my TODO. I have tried serveral formats. My latest command being:
rsync -avz --include "*" --exclude .git/ --exclude .gitignore --exclude TODO --del ariela@pc01:/home/web/taskadmin /home/web/tests/
However the all the unwanted files are still being copied. I don't understand. What am I doing wrong?
All files are included by default. Simply exclude those you don't want to be copied
rsync -avz --exclude .git/ --exclude .gitignore --exclude TODO --del ariela@pc01:/home/web/taskadmin /home/web/tests/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With