Skip to content

Instantly share code, notes, and snippets.

@geunho
Created January 14, 2019 06:42
Show Gist options
  • Save geunho/3603d828b3db08ff0364eeef6dab1946 to your computer and use it in GitHub Desktop.
Save geunho/3603d828b3db08ff0364eeef6dab1946 to your computer and use it in GitHub Desktop.
robocopy sync dir and output CUD list to file
REM Sync destination dir to source dir
REM retry max 10 times wait 1 second every try
REM output created, updated, deleted file list to both stdout and rc-list.txt file
robocopy %src_path% %dest_path% /MIR /R:10 /W:1 /NJH /NJS /NC /NS /NDL /NP /TEE /LOG:rc-list.txt /XF *.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment