question

Ed7 avatar image
0 Votes"
Ed7 asked Ed7 answered

File Migration with ROBOCOPY

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-fileswindows-server-migration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeonLaude avatar image
1 Vote"
LeonLaude answered LeonLaude edited

Hi @Ed7,

Robocopy is a great tool for data migration, you can find all the syntaxes on the following pages:
- https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy
- https://ss64.com/nt/robocopy.html


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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Ed7 avatar image
0 Votes"
Ed7 answered

Thank you very much guys. Much appreciated

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.