Symbolic Links - Copying


  1. Posts : 19
    windows vista 64
       #1

    Symbolic Links - Copying


    Greetings,


    I have a large number of symbolic links (soft links) on my PC that I want to migrate to a new machine with an identical directory structure. When I use various backup or copy programs that clone files (bit copy), the symbolic links do not work on the target machine (they get converted to empty files instead of links). Any help would be appreciated.
      My Computer


  2. Posts : 5,092
    Windows 7 32 bit
       #2

    This link may be helpful.
      My Computer


  3. Posts : 721
    Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
       #3

    bwatch said:
    When I use various backup or copy programs that clone files (bit copy), the symbolic links do not work on the target machine (they get converted to empty files instead of links).
    That behaviour depends on the software you use.

    If your backup software does not support copying symbolic links, here’s a handy Windows tip: run the following command directly after your backup routine. This command copies all reparse points.
    Code:
    robocopy source destination /s /sl /ia:t /w:0 /r:0
    Caveat: this command should be run with administrative privileges. Of course, this is because symbolic link creation requires the SeCreateSymbolicLinkPrivilege privilege which only administrative accounts have access to by default.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:12.
Find Us