exclude directory from rsync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux