File Migration with ROBOCOPY

Ed7 96 Reputation points


I am new with file migration and I would like to know how I can migrate certain folders which are stored on a server to another from different domains using ROBOCOPY?

I am completly new on this and any help would be great.

Thank you in advance

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,100 questions
Windows Server Migration
Windows Server Migration
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Migration: The process of making existing applications and data work on a different computer or operating system.
403 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Laude 85,566 Reputation points

    Hi @Ed7 ,

    Robocopy is a great tool for data migration, you can find all the syntaxes on the following pages:

    The basic command for copying files/folders is the following command:

    robocopy C:\Source C:\Destination

    The above command will copy all files (excluding subfolders) from C:\Source to C:\Destination.

    The most commonly used command is the following:

    robocopy C:\Source C:\Destination /E /COPYALL

    The above command copies all NTFS ACLs, file owners, subfolders (including empty ones) and all file attributes.

    I strongly suggest going through the following guide for some basics:

    If you want to copy files/folders from one domain to another domain, you will need to connect to the servers using the appropriate credentials before running the robocopy command.

    One way is to first mount the drives/folders from the source and destination servers (this will require the credentials), then run the robocopy command.

    For example:

    net use \\SourceServer\D$ /user:Domain1\Admin1 *   
    net use \\DestinationServer\D$ /user:Domain2\Admin2 *  
    robocopy \\SourceServer\D$\FolderX\%3 \\DestinationServer\D$\FolderY  


    If the reply was helpful please don't forget to upvote and/or accept as answer, thank you!

    Best regards,

    2 people found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Limitless Technology 39,181 Reputation points

    Hello @Ed7

    Yes, this is possible. I would recommend the next article where the methodology has been discussed, and the Robocopy usage explained:

    Hope this helps with your query,

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  2. Ed7 96 Reputation points

    Thank you very much guys. Much appreciated

    0 comments No comments