File Migration with ROBOCOPY

Ed7 96 Reputation points
2021-11-26T12:53:39.727+00:00

Hello,

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,162 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.
408 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Laude 85,651 Reputation points
    2021-11-26T13:14:43.197+00:00

    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,
    Leon

    2 people found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Limitless Technology 39,351 Reputation points
    2021-11-26T19:17:05.7+00:00

    Hello @Ed7

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

    https://social.technet.microsoft.com/Forums/windows/en-US/a4c2bd94-822c-4b6f-9154-07985d9749fe/robocopy-permissions-issues-cross-domain-copy?forum=winserverfiles

    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
    2021-11-30T09:21:27.197+00:00

    Thank you very much guys. Much appreciated

    0 comments No comments