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?
Best Answer
All files are included by default. Simply exclude those you don't want to be copied