I’m trying to do an rsync of the entire /var directory, but exclude just the /var/www directory.
So far I’ve tried these approaches:
rsync -avzp –exclude-from=/var/www /var/ /mnt/var/
rsync -avzp –exclude=/var/www /var/ /mnt/var/
But neither has worked. Can I get a suggestion on how to get this to happen?