DO NOT REPLY [Bug 7618] New: symlinks and --link-dest
samba-bugs at samba.org
samba-bugs at samba.org
Fri Aug 13 05:07:27 MDT 2010
https://bugzilla.samba.org/show_bug.cgi?id=7618
Summary: symlinks and --link-dest
Product: rsync
Version: 3.0.7
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned at samba.org
ReportedBy: the_majkl at seznam.cz
QAContact: rsync-qa at samba.org
Rsync creates/reports(?) new symlinks instead of using old ones in linked
directory.
## first rsync creates hpuh directory:
[root at zaloha pokus]# rsync -avz --exclude-from=hpuh.conf --delete-before
--delete-excluded --numeric-ids -8 --password-file=/etc/rsync.secrets
rsync://backup@hpuh/system hpuh receiving file list ... done
created directory hpuh
./
home/
home/zumrova/
home/zumrova/.private
home/zumrova/.profile
home/zumrova/.tsm -> /usr/tsm/.tsm
home/zumrova/mu
home/zumrova/.lpuser/
home/zumrova/.lpuser/global.log
sent 319 bytes received 1008 bytes 2654.00 bytes/sec
total size is 1229 speedup is 0.93
--> ok, as expected
## second transfer for check:
[root at zaloha pokus]# rsync -avz --exclude-from=hpuh.conf --delete-before
--delete-excluded --numeric-ids -8 --password-file=/etc/rsync.secrets
rsync://backup@hpuh/system hpuh
receiving file list ... done
sent 228 bytes received 274 bytes 334.67 bytes/sec
total size is 1229 speedup is 2.45
-> ok, nothing new, symlink .tsm is not reported/created
# let's move the folder and use it as link destination
[root at zaloha pokus]# mv hpuh hpuh1
[root at zaloha pokus]# rsync -avz --exclude-from=hpuh.conf --delete-before
--delete-excluded --numeric-ids -8 --password-file=/etc/rsync.secrets
--link-dest=/root/pokus/hpuh1/ rsync://backup@hpuh/system hpuh
receiving file list ... done
created directory hpuh
home/zumrova/.tsm -> /usr/tsm/.tsm
sent 231 bytes received 277 bytes 1016.00 bytes/sec
total size is 1229 speedup is 2.42
[root at zaloha pokus]#
-> symbolic link(s) seems to be recreated/reported as new, why? But only when
linking to moved/renamed directory.
## client (linux):
rsync version 3.0.7 protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, ACLs, xattrs, iconv, no symtimes
## server (hpuh 11.23)
rsync version 3.0.7 protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 32-bit inums, 32-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, no IPv6, batchfiles, inplace,
append, ACLs, no xattrs, iconv, no symtimes
Thanks, Mike
--
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.
More information about the rsync
mailing list