/s for sub-directories with files in them
/e for empty sub-directories too
/xo excludes older files (ie. only copy newer or updated files)
/xj eXclude Junction points (if you copy a user profile with links you'll spend a long time trying to remove the hundreds of duplicated folders) all my scripts use this switch as a mandatory switch since I don't use or need to copy junction links.

/R:n :: number of Retries on failed copies: default 1 million.
/W:n :: Wait time between retries: default is 30 seconds.

Example usage
robocopy "c:\test" "\\server\share\folder" /s /xo /xj /r:0 /w:0



Edited by NTDOC (2016-05-24 10:09 PM)