rsync operation times out on excluded directory

Rob klein Gunnewiek r.kleingunnewiek at bwss.nl
Fri Aug 8 14:57:28 GMT 2008


Wayne Davison schreef:
> On Thu, Aug 07, 2008 at 10:53:34AM +0200, Rob klein Gunnewiek wrote:
>> However, even though I exclude this directory, rsync still attempts to
>> access it:
> 
> [..]
> 
> In the meantime, there your options are: (1) exclude the parent dir
> of the mount (/home/username/mnt), which will prevent rsync from ever
> trying to stat the mount itself, (2) change the current mount to a
> symlink to a mount, and move the actual mount to a place where you can
> exclude its parent directory, or (3) create a way for the laptop-user
> to unmount that mount prior to leaving and remount after arriving.
> 

Thanks a lot for your answer.

After reading the man-page a few times, and many google searches, I decided to
finally ask the question here. And as always happens to me, once I asked it, I
find the problem. Sorry.

The problem was that I was copying /home (rsync server:/home ...), and the
exclude path needed to be relative to this. Newbie mistake :). So, now it works,
using: --exclude=username/mnt (instead of --exclude=/home/username/mnt). Now
you're probably saying 'duh' ;-)

However, I wonder why the error I am getting is: rsync: readlink
"/home/username/mnt/dev". Why would it try calling 'readlink' on the directory?

-- 
Rob klein Gunnewiek
BWSS B.V. Deventer (http://www.bwss.nl)
Tel +(31) 0570-665140
Fax +(31) 0570-665141


More information about the rsync mailing list