Created
August 18, 2022 00:51
-
-
Save gene1wood/e4c16f0ed6cfa5ab00628357a6259494 to your computer and use it in GitHub Desktop.
Example of how to run Robocopy to sync files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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