[CentOS] exclude directory from rsync

John R Pierce pierce at hogranch.com
Tue Jun 9 05:22:10 UTC 2015


On 6/8/2015 10:12 PM, Tim Dunphy wrote:
> 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?
how about...

     cd /var
     rsync -avzp --exclude=www/\* . /mnt/var






-- 
john r pierce, recycling bits in santa cruz




More information about the CentOS mailing list