Hans-Dieter.Doll
2008-Apr-15 22:20 UTC
problems with skipping server-excluded files with rsync 2.6.6
Hi, I have a setup as follows: rsync config file (/var/run/ifxclm-rsyncd.conf): uid = root gid = root hosts allow = zgrlvr1a.zgr.insel.de log file = /var/log/ifxclm-rsyncd pid file = /var/run/ifxclm-rsyncd.pid log format = %h %o %f %l %b transfer logging = true use chroot = true read only = false write only = true [drb] comment = DrB Environment path = / include from = /var/run/ifxclm-rsync-incl-drb exclude = * The include file (/var/run/ifxclm-rsync-incl-drb) looks like: - .ssh - .kde - .history - .bash_history - .LogGetan - .viminfo - .vimscripts - *.swp - /project/drb/src - /project/drb/logbuch - /project/drb/.Log* /project /project/drb /project/drb/** /project/tform /project/tform/** /usr /usr/lib /usr/lib/tfmac /usr/lib/tfmac/** The rsync server is called as follows: /usr/bin/rsync --daemon --port=874 --config=/var/run/ifxclm-rsyncd.conf The client is called as follows: /usr/bin/rsync -aH --port=874 --delete -b --suffix=.ifxclm -v --include-from=/var/run/ifxclm-rsync-incl-drb --exclude '*' / zgrlvr1b::drb The include file on the client is the same as on the server. This worked fine for me at least up to rsync version 2.6.2. Now I'm trying to use this on SuSE SLES 10 which has rsync version 2.6.6 and the server rejects all files with the error message "skipping server-excluded file". If I ommit the exclude in the server config, it works. But for security reasons I want to use server side excludes and are unable to find out why it isn't working any longer as it used before. Hans-Dieter Doll
Wayne Davison
2008-Apr-16 15:18 UTC
problems with skipping server-excluded files with rsync 2.6.6
On Tue, Apr 15, 2008 at 11:45:35PM +0200, Hans-Dieter.Doll wrote:> This worked fine for me at least up to rsync version 2.6.2. > Now I'm trying to use this on SuSE SLES 10 which has rsync version 2.6.6 > and the server rejects all files with the error message > "skipping server-excluded file".Starting with 2.6.3 rsync began to use the include/exclude rules to limit what could be uploaded to the server as well as what could be downloaded. It would seem that this upload limit allows the "." dir at the root of the transfer to be excluded (which it should not do, but has done since 2.6.3). So, your exclusion of "*" is causing the starting directory to be dropped, and nothing can be transferred. An easy fix is to add "include = /." to that module in your rsyncd.conf file, and uploads should start to work again. ..wayne..