Robocopy command to copy files and folders with permission and other attibutes


Robocopy "\\192.168.12.1\E$\Important_Data\Data_New" "\\192.168.14.2\E$\Important_Data\Data_New" /S /ZB /MIR /COPYALL /R:3 /W:3 /NP /LOG:Data_Copy.log

/S
Copy Subdirectories, but not empty ones.
/ZB
Use restartable mode; if access denied use Backup mode.
/MIR
MIRror a directory tree (equivalent to /E plus /PURGE).
/COPYALL
COPY ALL file info (equivalent to /COPY:DATSOU).
/R:n
Number of Retries on failed copies: default 1 million.
/W:n
Wait time between retries: default is 30 seconds.
/NP
No Progress - don't display percentage copied.
/LOG:file
Output status to LOG file (overwrite existing log).
/PURGE
Delete dest files/dirs that no longer exist in source.
/E
Copy subdirectories, including Empty ones.


No comments:

Post a Comment