Share via


Robocopy and Symbolic links ?

Question

Friday, March 31, 2017 3:44 PM

I have a question regarding Robocopy.  Is it possible to create a symbolic link with Robocopy ?

All replies (5)

Friday, March 31, 2017 5:59 PM

No, ROBOCOPY is Robust File Copy for Windows.  Do;

robocopy /s

To view the helps and usage for robocopy. Only mention of symbolic links is;

/SL :: copy symbolic links versus the target

The Complete Guide to Creating Symbolic Links (aka Symlinks) on Windows


Saturday, April 1, 2017 1:56 AM

What does that mean copy symbolic link versus the target ?


Saturday, April 1, 2017 8:43 PM

No something I have used but;

Symbolic Link Effects on File Systems Functions

If COPY_FILE_COPY_SYMLINK is specified and:

  • If the source file is a symbolic link, the symbolic link is copied, not the target file.
  • If the source file is not a symbolic link, there is no change in behavior.
  • If the destination file is an existing symbolic link, the symbolic link is overwritten, not the target file.

So about copying behaviour.


Sunday, April 2, 2017 12:04 AM

  • If the source file is a symbolic link, the symbolic link is copied, not the target file.

The target file being the file that would have otherwise been copied ?


Tuesday, June 5, 2018 9:44 AM

Hello,

So how we can copy the content of the Symbolic link folder only and not the symbolic link.

As per our requirement we have several svn repositories with symbolic links, But as we are migrating our server we just want to copy the real content of the mlink folder.