Below is a basic cheat sheet of robocopy commands. Wanna go crazy? Here!
Like a GUI?
:: Source Directory : /SD:\\server1.domain.com\d$\Backups :: Source Directory. :: Destination Directory : /DD:\\server2.domain.com\e$\Target :: Destination Directory. :: Include These Files : /IF :: Include Files matching these names :: *.* :: Include all names (currently - Command Line may override) :: Exclude These Directories : /XD :: eXclude Directories matching these names :: :: eXclude no names (currently - Command Line may override) :: Exclude These Files : /XF :: eXclude Files matching these names :: Copy options : :: /IPG:10 :: Inter-Packet Gap (ms), to free bandwidth on slow lines. /B :: copy files in Backup mode. /MIR :: MIRror a directory tree (equivalent to /E plus /PURGE). /SEC :: copy files with SECurity (equivalent to /COPY:DATS). /MT:20 :: Do multi-threaded copies with n threads (default 8) :: Retry Options : /R:5 :: number of Retries on failed copies: default 1 million. /W:5 :: Wait time between retries: default is 30 seconds. :: Logging Options : /V :: produce Verbose output, showing skipped files. /NP :: No Progress - don't display % copied. /FP :: replaces simple file names with full file pathnames in the output. /NDL :: (No Directory List) suppresses output of the directory list. /NFL :: (No File List) suppresses output of files processed. /TEE :: output to console window, as well as the log file. /LOG:D:\Robocopy\Scripts\robojob\log.txt :: output status to LOG file (overwrite existing log).