Hi Folks, I'm running rsync between an NT client and a Solaris 7 Server (Ver 2.4.6). I'd like to be able to exclude the following directory: /opt/IBMHTTPDLOG/archivelogs but retrieve /opt/IBMHTTPDLOG My setup is: rsync -av -p -e rsync@server1.cna.com:/opt/IBMHTTPDLOG/ F:/opt/IBMHTTDLOG (client) rsync --daemon --exclude-from=/etc/rsync.exclude (server) What I get is *everything* including the contents of the dir ./archivelogs. What is the proper syntax ? I've tried setting up my entry in rsync.exclude as: '/opt/IBMHTTPDLOG/archivelogs' archivelogs/ 'archivelogs/' ./archivelogs ./archivelogs/ I've also tried setting the server-side rsync daemon as --exclude <blah-blah> to no avail. Thanks in advance, Eisen Chao CNA Insurance
Read the doco oon the eclude/indlude files/ Eclude file takes - and + before the name so that you can build a unified exclude-include list in a single exclude file. Regards TMC On Thu, Oct 18, 2001 at 06:52:29PM -0500, Chao,Eisen R. wrote:> Hi Folks, > > I'm running rsync between an NT client and a Solaris 7 Server (Ver 2.4.6). > > I'd like to be able to exclude the following directory: > > /opt/IBMHTTPDLOG/archivelogs > > but retrieve > > /opt/IBMHTTPDLOG > > My setup is: > > rsync -av -p -e rsync@server1.cna.com:/opt/IBMHTTPDLOG/ > F:/opt/IBMHTTDLOG > (client) > > rsync --daemon --exclude-from=/etc/rsync.exclude > (server) > > > What I get is *everything* including the contents of the dir ./archivelogs. > What is the proper syntax ? I've tried setting up my entry in rsync.exclude > as: > > '/opt/IBMHTTPDLOG/archivelogs' > archivelogs/ > 'archivelogs/' > ./archivelogs > ./archivelogs/ > > I've also tried setting the server-side rsync daemon as --exclude > <blah-blah> to no avail. > > Thanks in advance, > > Eisen Chao > CNA Insurance > >-- Tomasz M. Ciolek * * Everything falls under the law of change; <tmc@dreamcraft.com.au> * Like a dream, a phantom, a bubble, a shadow, <tmc@goldweb.com.au> * like dew of flash of lightning. * You should contemplate like this. ******************************************************************************* GPG Key ID: 0x7A18E49D * Available on www.pgp.net *******************************************************************************
--daemon doesn't take the ---exclude* options. Put "exclude from = /etc/rsync.exclude" in your rsyncd.conf. Tim Conway tim.conway@philips.com 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips Available as n9hmg on AIM perl -e 'print pack(nnnnnnnnnnnn, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), ".\n" ' "There are some who call me.... Tim?" "Chao,Eisen R." <Eisen.Chao@cna.com>@lists.samba.org on 10/18/2001 05:52:29 PM Sent by: rsync-admin@lists.samba.org To: "'rsync@lists.samba.org'" <rsync@lists.samba.org> cc: (bcc: Tim Conway/LMT/SC/PHILIPS) Subject: Re: Exclude Classification: Hi Folks, I'm running rsync between an NT client and a Solaris 7 Server (Ver 2.4.6). I'd like to be able to exclude the following directory: /opt/IBMHTTPDLOG/archivelogs but retrieve /opt/IBMHTTPDLOG My setup is: rsync -av -p -e rsync@server1.cna.com:/opt/IBMHTTPDLOG/ F:/opt/IBMHTTDLOG (client) rsync --daemon --exclude-from=/etc/rsync.exclude (server) What I get is *everything* including the contents of the dir ./archivelogs. What is the proper syntax ? I've tried setting up my entry in rsync.exclude as: '/opt/IBMHTTPDLOG/archivelogs' archivelogs/ 'archivelogs/' ./archivelogs ./archivelogs/ I've also tried setting the server-side rsync daemon as --exclude <blah-blah> to no avail. Thanks in advance, Eisen Chao CNA Insurance
Hello, Is there a way to exclude files using wildcards in the rsyncd.conf, to get the same effect of --exclude option in using rsync in client mode ? I'm trying to exclude all the ~* *.bak etc... using : [systeme] path = /home2 read only = no exclude = ~* *.bak *.tmp And it doesn't work, file are alaways copied. Is anybody know the solution ? thank you jhb
Since you use "read only = no", I assume you're sending TO the rsyncd, which is not well supported. I think you'll have to mandate the exclude on the client side. SunOS 5.7 Last change: 12 Feb 1999 4 Headers, Environments, and Macros rsyncd.conf(5) exclude The "exclude" option allows you to specify a space separated list of patterns to add to the exclude list. This is equivalent to the client specifying these pat- terns with the --exclude option except that the exclude list is not passed to the client and thus only apply on the server. Only one "exclude" option may be speci- fied, but you can use "-" and "+" before patterns to specify exclude/include. Note that this option is not designed with strong secu- rity in mind, it is quite possible that a client may find a way to bypass this exclude list. If you want to absolutely ensure that certain files cannot be accessed then use the uid/gid options in combination with file permissions. Tim Conway tim.conway@philips.com 303.682.4917 office, 3039210301 cell Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips, n9hmg on AIM perl -e 'print pack(nnnnnnnnnnnn, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), ".\n" ' "There are some who call me.... Tim?" "Jean-Hugues BELPOIS" <Jean-Hugues.Belpois@univ-brest.fr> Sent by: rsync-admin@lists.samba.org 06/19/2002 08:48 AM Please respond to "Jean-Hugues BELPOIS" To: <rsync@lists.samba.org> cc: (bcc: Tim Conway/LMT/SC/PHILIPS) Subject: Exclude Classification: Hello, Is there a way to exclude files using wildcards in the rsyncd.conf, to get the same effect of --exclude option in using rsync in client mode ? I'm trying to exclude all the ~* *.bak etc... using : [systeme] path = /home2 read only = no exclude = ~* *.bak *.tmp And it doesn't work, file are alaways copied. Is anybody know the solution ? thank you jhb -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html