samba-bugs at samba.org
2009-Nov-13 05:14 UTC
DO NOT REPLY [Bug 6893] New: the symbolic link to the directory is gone when only some of the files are to be sync'ed
https://bugzilla.samba.org/show_bug.cgi?id=6893
Summary: the symbolic link to the directory is gone when only
some of the files are to be sync'ed
Product: rsync
Version: 3.0.6
Platform: x86
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P3
Component: core
AssignedTo: wayned at samba.org
ReportedBy: avoker.s1 at gmail.com
QAContact: rsync-qa at samba.org
How to reproduce
===============
Suppose we have hosts "src" and "dst" and we have
testfolder/
test -> testfolder/
under /home and
[root at heron home]# ll /home/test/
total 0
-rw-r--r-- 1 root root 0 Nov 13 15:29 a
-rw-r--r-- 1 root root 0 Nov 13 15:29 b
-rw-r--r-- 1 root root 0 Nov 13 15:29 c
we have file test.list which has contents below:
/home/test/a
Now we run on host "src" following command:
rsync -avzog -r --super -e ssh --files-from=test.list --delete / dst:/
then rsync will ignore the fact that /home/test is a valid softlink to an
existing directory on "dst" and will remove it and create a new
directory
"test" with file "a" underneath.
This is serious. For example if you only want to sync "smb" script
under
/etc/init.d, you'll end up with a new /etc/init.d with only "smb"
inside it on
the target machine because normally /etc/init.d->/etc/rc.d/init.d. Then you
won't be able to boot up the system.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2009-Nov-13 05:23 UTC
DO NOT REPLY [Bug 6893] the symbolic link to the directory is gone when only some of the files are to be sync'ed
https://bugzilla.samba.org/show_bug.cgi?id=6893
matt at mattmccutchen.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #1 from matt at mattmccutchen.net 2009-11-12 23:23 CST -------
This is the expected behavior unless --no-implied-dirs or --keep-dirlinks is
used. See the description of --no-implied-dirs in the man page.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
Seemingly Similar Threads
- DO NOT REPLY [Bug 4037] New: Rsync should obey --keep-dirlinks when searching basis dirs
- DO NOT REPLY [Bug 4378] New: Handling of symbolic links
- DO NOT REPLY [Bug 4220] New: --backup causes "stat" failed message when trying to delete a directory
- rsync deleting symbolic link unexpectedly
- DO NOT REPLY [Bug 6027] New: Error when rsync encounters empty symlinks