rsync: --delete fails with multiple source directories

Edward Farrar farrare at
Mon Jul 22 04:23:02 EST 2002


	Rsync 2.5.5 is producing this error message and a core file when executing the
command "/usr/local/bin/rsync -av --delete --force /net/OSCM/OS_ATLAS2/CONFIG/.

building file list ... done
rsync: connection unexpectedly closed (8 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)

The /net/OSCM directory is an NFS mounted file system.  The /OS directory is
local.  From reading the man pacge for rsync, one of the syntax options is
"rsync [OPTION]... SRC [SRC]... DEST ".  The two source directories contain
several files with the same name.  I am unsure how rsync selects which file to
transfer, but it appears to be the file with the most recent date.  Is that

	My basic goal is to merge the two source directories, choosing the most recent
file in either directory if a duplicate name exists, and then deleting any
"extra" files in the destination directory.  

Any insight and help is greatly appreciated.  I have searched the web and as
much documentation I could find, but have been unsuccessful in finding a
solution.  I have also tried versions 2.5.4 and 2.3.1 with the same results.

Ed Farrar

system names removed for security reasons......

# uname -a
SunOS XXXXXXXXXXXXXXXXXX 5.8 Generic_108528-11 sun4u sparc

# /usr/local/bin/rsync --version
rsync  version 2.5.5  protocol version 26
Copyright (C) 1996-2002 by Andrew Tridgell and others
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, 
              no IPv6, 64-bit system inums, 64-bit internal inums

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.

# df -k /net/OSCM /OS
Filesystem            kbytes    used   avail capacity  Mounted on
XXXXXXXXX:/sol/oscm        41943040 29256720 12650144    70%    /net/OSCM
/dev/md/dsk/d0       17402262 14459697 2768543    84%    /OS

# du -sk /net/OSCM/OS_ATLAS2/CONFIG/. /net/OSCM/OS_TITAN1/2.6/CONFIG/.
320     /net/OSCM/OS_ATLAS2/CONFIG/.
368     /net/OSCM/OS_TITAN1/2.6/CONFIG/.

More information about the rsync mailing list