This might be a bit of an edge case, but I would dearly like to know if there is a simple way to achieve this.
Suppose I have the following set up (where the latter two are symbolic links to the first):
- D:\Work\CommonStuff
- D:\Work\Project1\Stuff -> D:\Work\CommonStuff
- D:\Work\Project2\Stuff -> D:\Work\CommonStuff
Now suppose I want to make a backup of D:\Work
to E:\Work
.
I would like the links to be maintained, relatively, resulting in:
- E:\Work\CommonStuff
- E:\Work\Project1\Stuff -> D:\Work\CommonStuff
- E:\Work\Project2\Stuff -> D:\Work\CommonStuff
Of course I understand that if I had:
- D:\Work\CommonStuff
- D:\Work\Project1\Stuff -> D:\Work\CommonStuff
- D:\Work\Project2\Stuff -> D:\Work\CommonStuff
- D:\Work\Project3\Stuff -> D:\OtherCommonStuff
Then it would complicate matters because if I am just copying D:\Work
then what would the copy command do for the last option? In this case I'd like to copy the files directly, losing the symbolic link.
Is there any way robocopy or xcopy or [anyother]copy can achieve this on Windows 10?