Use -RH to preserve the soft links while copying the files.
cp -RH <src> <dest>
1 person found this helpful
Copying the Source System to the Target System
UNIX/Linux users should ensure that the symbolic links (soft links) are preserved when copying.
On most UNIX platforms, this can be accomplished with cp -RH command.
Please check the Unix man pages for the exact parameters for the cp command on your platform.
cp -RH /source_dir/db/* .
Alternatively, the "tar" command can be used to compress the directories into a temporary staging area.
If you are using this command, take into consideration that you may have to use the -h option to follow symbolic links as on some platforms, following symbolic links is not the default behavior.
Sharing is Caring