Re: [CentOS] exclude directory from rsync

2015-06-09 Thread Tim Dunphy
Hey guys, Thanks for your input! Both examples you gave worked, and I'll do some reading on the suggested subjects!! Just a heads up that it worked. I appreciate the clarification! Thanks, Tim On Tue, Jun 9, 2015 at 1:45 AM, Gordon Messmer wrote: > On 06/08/2015 10:12 PM, Tim Dunphy wrote: >

Re: [CentOS] exclude directory from rsync

2015-06-08 Thread Gordon Messmer
On 06/08/2015 10:12 PM, Tim Dunphy wrote: I'm trying to do an rsync of the entire /var directory, but exclude just the /var/www directory. ... rsync -avzp --exclude-from=/var/www /var/ /mnt/var/ --exclude-from takes a filename as an argument. That filename is expected to contain a list of p

Re: [CentOS] exclude directory from rsync

2015-06-08 Thread John R Pierce
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 --

[CentOS] exclude directory from rsync

2015-06-08 Thread Tim Dunphy
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 h