Hi I am trying to find a copy command that will copy a symbolic link itself and not what the link is actually pointing to. I am trying to copy a directory that has some symbolic links within it
in IBM AIX unix this is achieved using cp -prh <source dir> <target>
the 'h' flag is a hard copy which copies the link itself
However there appears to be no similiar flag in Solaris
Can you tar (CD && tar) the structure to maintain the links?
mv should retain links as well but they remain relative if the node is created that way.
eg tar cf - ./some_dir | ( cd /untar_here_dir && tar xfB - )
Again, relative links to a file not part of your copied structure will be broken. if you find the need for such links and the possibility of copying them around is a lot you, will need to set the ./link -> /path/to/location/of/file accordingly.