8

Simple RSync EXCLUDE option?

view full story
linux-howto

http://stackoverflow.com – I want a simple and working (multiple) exclude option inside my rsync command. Lets say i will exclude a file and a directory: /var/www/html/test.txt /var/www/html/images/ What i did is: rsync -avz --exclude="/var/www/html/test.txt" --exclude="/var/www/html/images/" /var/www/html [email protected]:/var/www or rsync -avz --exclude=/var/www/html/test.txt --exclude=/var/www/html/images/ /var/www/html [email protected]:/var/www or rsync -avz --exclude /var/www/html/test.txt --exclude /var/www/html/images/ /var/www/html [email protected]:/var/www .. But however, the --exclude is NOT WORKING (HowTos)