Windows 2000 or above supports symbolic links but the Redmond folks forgot to provide any tools to remove or create symlinks and by default you get some really fucked up one. Maybe the importance of this matter is not enough high but for fuck sake, if you have a freaking feature provide some tool for it!
Mark Russinovich saves our life not the last time with his tool, called Junction. This guy should be the vice president of operating systems division of Microsoft, but than there would not be any chance for competitors. Anyways, I downloaded his tool and got rid off the symlinked stuff in the documents directory.
C:\Users\user\Documents>junction -d "My Music"
Junction v1.06 - Windows junction creator and reparse point viewer
Copyright (C) 2000-2010 Mark Russinovich
Sysinternals - www.sysinternals.com
Deleted My Music.
C:\Users\user\Documents>junction -d "My Pictures"
Junction v1.06 - Windows junction creator and reparse point viewer
Copyright (C) 2000-2010 Mark Russinovich
Sysinternals - www.sysinternals.com
Deleted My Pictures.
C:\Users\user\Documents>junction -d "My Videos"
Junction v1.06 - Windows junction creator and reparse point viewer
Copyright (C) 2000-2010 Mark Russinovich
Sysinternals - www.sysinternals.com
Deleted My Videos.
Happy days, afterall.
So back to robocopy. I was looking for a tool to backup all my stuff, and I have encountered this tool. I am using the following commands from a powershell script:
http://support.microsoft.com/kb/160513
robocopy C:\Users\user\Music E:\music\ /MIR /Z /NP /LOG:C:\Users\user\Desktop\logs\music_e_$(Get-Date -format yyyy_M_d).log.txt
robocopy C:\Users\user\Pictures E:\pics\ /MIR /Z /NP /LOG:C:\Users\user\Desktop\logs\pics_e_$(Get-Date -format yyyy_M_d).log.txt
robocopy C:\Users\user\Documents E:\docz\ /MIR /Z /NP /LOG:C:\Users\user\Desktop\logs\docz_e_$(Get-Date -format yyyy_M_d).log.txt
That shouldn't be necessary. The permissions on those legacy-folder junctions deny List permissions to Everyone, specifically so that backup programs don't see the same file through multiple paths. Did you mess up the default permissions on those junctions?
ReplyDeleteHey Aaron,
ReplyDeletethis is not the case. I have not changed any permission on those folders and robocopy with /MIR copies them.
Btw., it is possible to delete the junctions with simple del command and there is mklink to create links.