2 Replies Latest reply on Feb 15, 2016 11:17 AM by ;) ApPsMasTi ;)

    cloning : make sure that the softlinks are preserved

    happy10319

      Hi,

      on 11.5.10.2,

      when cloning and copying from source to target , how to :

       

       

      make sure that the softlinks are preserved ?

       

       

      Thank you.

        • 1. Re: cloning : make sure that the softlinks are preserved
          al_dba87

          Hi,

           

          Use -RH to preserve the soft links while copying the files.

           

          cp -RH <src> <dest>


          Thanks

          Altaf

          • 2. Re: cloning : make sure that the softlinks are preserved
            ;) ApPsMasTi ;)

            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.

            For example:

            cd /target_dest_dir/db

            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.

             

            ApssMAsti
            Sharing is Caring

            1 person found this helpful