This content has been marked as final. Show 3 replies
The error can happen if a directory at the source is replaced by a symlink, which requires to remove the directory at the destination in order to create the symlink, but it cannot if the directory is not empty. According to the rsync manpage, I would try the following:
--force, force deletion of dirs even if not empty
--delete, delete extraneous files from dest dirs
rsync -avzul stats force oratop firstname.lastname@example.org:/d04/appltop/
Thanks for the reply !
YES it is working now THANKS, all softlink created on destination with today's date.
Only thing which is different is ownership of these link, please see below: (Other file/dir are heaving same ownership on both side)
lrwxrwxrwx 1 emdadm dba 34 Aug 23 2010 6iserver -> /d04/appltop/prodora/8.0.6
lrwxrwxrwx 1 emdadm dba 5 Aug 23 2010 appsoui -> oui21
lrwxrwxrwx 1 emdadm dba 10 Aug 23 2010 JRE -> appsjre118
lrwxrwxrwx 1 appl dba 5 Jul 12 14:12 appsoui -> oui21
lrwxrwxrwx 1 appl dba 10 Jul 12 14:12 JRE -> appsjre118
lrwxrwxrwx 1 appl dba 34 Jul 12 14:12 6iserver -> /d04/appltop/prodora/8.0.6
How can we set our rsync to restore the original ownership as it is in source.
From what I understand, symbolic links are not copied; they are created. Changing the ownership of a symbolic link will change the ownership of the directory or file it is linked too. The ownership of the symlink itself is irrelevant and cannot be changed.