[CentOS] exclude directory from rsync

Tue Jun 9 05:12:24 UTC 2015
Tim Dunphy <bluethundr at gmail.com>

hey guys,

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?

Thanks,
Tim

-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B