Junction Path problem

Status
Not open for further replies.
I am attempting to migrate on of our file servers to new hardware and I've ran into a problem while performing robocopy operations. Apparently there is a junction path with roughly 3TB of information in it on the source. I had already "copied" roughly 4GB of it to the destination server before I realized something wasn't right and stopped the transfer. However now I have a junction path on the destination which points to the source. If I create a file on the destination 'folder' it creates it in the source. My fear is if I 'delete' the junction path 'folder' object on the destination server it will delete content on the source.

TLDR: Copied Junction Path & roughly 4GB of 3TB worth of data to destination server by accident. How can I remove the Junction Path on the destination server & its 4GB of data without affecting the source server and its 3TB of data?

PS: Whats the best way to copy the 3TB of data from source to destination without copying the Junction Point itself?
 
Thanks for the response :)

Looking into this a bit deeper, the folder in question doesn't have an L attribute set its only RD, however it shows as a shortcut folder to itself. Very odd. If I try and copy it, it just copies a link to itself at the new location and looks to start copying data underneath it (which is what I want). However the root folder at the new location just redirects me to the old location after the copy. (if this is the case what did it just spend hours copying over to the new location?!)
 

Tushmeister

Ars Scholae Palatinae
873
(if this is the case what did it just spend hours copying over to the new location?!)

If you want to know where it's pointing to, go the folder where that junction point is saved and then type the following without the quotes.

"dir /a:L"

edit: again, the L does not need to be capitalized. Done only for clarity.
 
I must be mistaken then that the folder I'm having an issue with isn't a symlink or junction as the dir /a:L does not list the folder in question.

The folder in question is a shortcut folder icon, properties show the type is File Folder with a target path of the UNC share path of itself. No Security tab, no byte or file counts, just a General & Previous Versions tab. It looks like the image in the link below without the other tabs.
https://superuser.com/questions/917035/shortcut-with-property-type-file-folder

Is it possible to create a root folder, then robocopy the contents of a folder maybe using a "\" or "\*.*" at the end of the source path? I'd rather not have to go through 700 individual subfolders if possible.

EDIT: FOUND IT! Stupid and not sure why/how it ever got set that way but it worked. Doing a resync now and it looks like its a normal folder at the destination now.
https://social.technet.microsoft.co...target-to-its-own-unc-path?forum=winservergen
 
Status
Not open for further replies.