Running the Robocopy commands

For each SMB export that you want to migrate, run the Robocopy command as follows:

Robocopy \\<source-smb-server>\<smbexport> \\<target-scale-cluster>\<smbexport> /copy:ATSO /secfix /Z /E /MT:32 /R:5 /W:3 /sl /log:logfile .

The Robocopy options are as follows:
  • /COPY:ATSO: Copy file information.
    • A: Attributes
    • T: Timestamps
    • S: Security - NTFS ACLs
    • O: Owner information
  • /secfix: Fixes the security on all files
  • /Z: Ensures Robocopy can resume the transfer of a large file in mid-file instead of restarting.
  • /E : Copy all subdirectories including the empty ones.
  • /MT : Create multi-threaded copies with N threads. N must be an integer between 1 and 128. The default value for N is 8.
  • /R: Specifies the number of retries on failed copies. The default value is1,000,000 (one million retries).
  • /W: Specifies the wait time between retries, in seconds. The default value is30 (wait time 30 seconds).
  • /sl : Copies the symbolic link instead of the target.
  • /log: Writes the status output to the log file (overwrites the existing log file)
If the above command fails with errors such as "access denied", issue the following command:
Robocopy \\<source-smb-server>\<smbexport> \\<target-scale-cluster>\<smbexport> /copy:DATSO /secfix /Z /E /IS /MT:32 /R:5 /W:3 /sl /log:logfile /V
  • /IS: Includes the same files. The same files have identical name, size, times, and all attributes.
  • /copy:DATSO: Copies file contents.
    For example,
    Robocopy \\10.11.12.15\smbshare1 \\10.90.40.16\smbshare1 /copy:DATSO /secfix /Z /E /IS /MT:32 /R:5 /W:3 /sl /log:C:\robocopylog.txt /V