Hi,
I have noticed behaviour in rsync which I suspect may be a bug. I have tried to find
information on this functionality to determine if it user error, but have been unable to
find anything to indicate one way or another.
It seems that the '--no-relative' option does not work correctly when used in conjunction
with the '--files-from' option to retrieve files from an external server.
Here are some examples to illustrate what I have tried:
working example:
let the file 'file_list.txt' contain the following entries:
/path/to/file1
/second/path/to/file2
enter the command:
$ rsync --archive \
--compress \
--delete \
--recursive \
--files-from=file_list.txt \
--no-relative \
--rsh=/opt/local/bin/ssh \
--rsync-path=/opt/local/bin/rsync \
--verbose \
/ remote_server:/
the above works as I expected, taking transferring the "file1" and "file2" files
to the "/" directory on the "remote_server" server.
failure example:
let the file 'file_list.txt' contain the following entries:
/path/to/file1
/second/path/to/file2
enter the following command:
$ rsync --archive \
--compress \
--delete \
--recursive \
--files-from=file_list.txt \
--no-relative \
--rsh=/opt/local/bin/ssh \
--rsync-path=/opt/local/bin/rsync \
--verbose \
remote_server:/ /
the above creates the following paths on the local server:
/path/to/file1
/second/path/to/file2
which seems that the "--no-relative" option didn't work.
I apologise if this is something I have done incorrectly, but if it is indeed
a bug, then hopefully it may raise it to someone's attention for fixing in a
future release.
regards,
Aaron Duncan
ps.
Here is the version output for the rsync I am using:
$ rsync --version
rsync version 2.6.3 protocol version 28
Copyright (C) 1996-2004 by Andrew Tridgell and others
<http://rsync.samba.org/>
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
inplace, 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.
$ uname -a
SunOS mpdcux11 5.8 Generic_117350-12 sun4u sparc SUNW,Sun-Fire-V240

Aaron Duncan
Solaris Administrator
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
-- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
