Hi,
I have a problem with mirroring soft links.
Rsync doesn't create the symlink on the remote machine but a directory with
the symlink content of the sending machine.
For example, if I try to sync up the following directory :
Sending machine
---------------------------
drwxr-xr-x 2 root root 512 Sep 22 22:53 dir00
drwxr-xr-x 2 root root 512 Sep 22 22:53 dir01
drwxr-xr-x 2 root root 512 Sep 22 23:07 dir02
drwxr-xr-x 2 root root 512 Sep 23 00:11 dir03
-rw-r--r-- 1 root root 6 Sep 22 23:07 file01
lrwxrwxrwx 1 root other 5 Sep 23 19:33 symlink01 -> dir01
I get on the remote machine :
-------------------------------------------
drwxr-xr-x 2 root root 512 Sep 22 22:53 dir00
drwxr-xr-x 2 root root 512 Sep 22 22:53 dir01
drwxr-xr-x 2 root root 512 Sep 22 23:07 dir02
drwxr-xr-x 2 root root 512 Sep 23 00:11 dir03
-rw------- 1 root root 6 Sep 22 23:07 file01
drwxr-xr-x 2 root root 512 Sep 22 22:53 symlink01
As you can note, the symbolic link on the sending machine "symlink01" has
been transfomed in a directory "symlink01" on the remote machine.
The directory "symlink01" on the remote machine contains all files of the
"dir01" of the sending machine, so I have twice the content of the "dir01"
directory on the remote machine.
- the first time by the normal sync of dir01
- the second time by the sync of the "symlink01" link.
Environment :
-------------
My environment is the following :
- OS version on sending and remote machine : Solaris 7
- rsync version on sending and remote machine : 4.2.5
- loging : root
Here is the command I am using :
/usr/local/bin/rsync --rsync-path=/usr/local/bin/rsync --delete -az
/export/home/toto/ remote:/export/home/mirror-toto/
I tested different link option ( l, L, --safe-link ) but I have always the
pb ).
Question
-------------
Is there a solution to just create the symbolic link on the remote machine
without follow them on the sending machine ?
I would like on the remote machine the same "image" ( symbolic link
included ) that the sending machine.
That is for the example
drwxr-xr-x 2 root root 512 Sep 22 22:53 dir00
drwxr-xr-x 2 root root 512 Sep 22 22:53 dir01
drwxr-xr-x 2 root root 512 Sep 22 23:07 dir02
drwxr-xr-x 2 root root 512 Sep 23 00:11 dir03
-rw-r--r-- 1 root root 6 Sep 22 23:07 file01
lrwxrwxrwx 1 root other 5 Sep 23 19:33 symlink01 -> dir01
Thank you in advance for your help.
------------------------------------------------
Philippe Lucas
Systèmes et Réseaux Jouve Rennes
Jouve Rennes
12, rue des Landelles
Immeuble Hercule II
35510 CESSON-SEVIGNE
FRANCE
-----------------------------------------------
France International
Tel : 02-99-86-98-13 33-2-99-86-98-13
Fax : 02-99-86-98-01 33-2-99-86-98-01
Email : [EMAIL PROTECTED]
-----------------------------------------------
Les fautes d'orthographe ne sont que des erreurs de transmission.
Opinions expressed here are only mine.