Robocopy

permissions for full shares

robocopy source destination /E /ZB /DCOPY:T /COPYALL /R:1 /W:1 /V /TEE /LOG:X:\Robocopy.log

Live, post first copy

robocopy source destination /XO

Addtionally –

robocopy SOURCE DESTINATION /mir /sec /secfix /v /mt:32 /tbd /r:2 /w:3


robocopy Y:\ Z:\ /copy:DATSOU /secfix /e /b /MT:8

The example command preceding uses the following elements and options:

  • Y – Refers to the source share located in the on-premises Active Directory forest mydata.com.
  • Z – Refers to the target share \\amznfsxabcdef1.mydata.com\share on Amazon FSx.
  • /copy – Specifies the following file properties to be copied:
    • D – data
    • A – attributes
    • T – timestamps
    • S – NTFS ACLs
    • O – owner information
    • U – auditing information.
  • /secfix – Fixes file security on all files, even skipped ones.
  • /e – Copies subdirectories, including empty ones.
  • /b – Uses the backup and restore privilege in Windows to copy files even if their NTFS ACLs deny permissions to the current user.
  • /MT:8 – Specifies how many threads to use for performing multithreaded copies.
Back to Top