Skip to content

Instantly share code, notes, and snippets.

@gene1wood
Created August 18, 2022 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gene1wood/e4c16f0ed6cfa5ab00628357a6259494 to your computer and use it in GitHub Desktop.
Save gene1wood/e4c16f0ed6cfa5ab00628357a6259494 to your computer and use it in GitHub Desktop.
Example of how to run Robocopy to sync files
REM /E : recursive including empty directories
REM /R:1 : retry once on failure
REM /W:1 : wait 1 second between tries
REM /LOG+ : append to a log file
REM /TEE : output to the log file and the screen
robocopy C:\source C:\destination /E /R:1 /W:1 /LOG+:C:\robocopy-2022-01-01.txt /TEE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment