Migrate Windows Fileserver using Robocopy

Migrate Windows Fileserver using Robocopy

  1. Go to your C:\
  2. Make a folder called “RoboCopy”
  3. Inside “RoboCopy” make a new folder called “Logs”
  4. Inside “RoboCopy” mae a new folder called “Old Logs”
  1. Insert the following code into the *.ps1
$source = <\\OLDSERVER\d$\FOLDER>
$destination = <D:\FOLDER>

robocopy $source $destination /e /zb /copy:DATSOU /r:3 /w:3 /log:c:\RoboCopy\Logs\<FOLDER>.log /V /NP

What are those switches doing?

  1. After the first run, run the following code to mirror just changes from the old to the new server, usually doing off-work hours.
robocopy $source $destination /e /zb /copy:DATSOU /MIR /r:3 /w:3 /log:c:\RoboCopy\Logs\<FOLDER>.log /V /NP
  1. Afterwords, don't forget to re-share the folder / drive, and change the source on the DFS.