robocopy for backup file and troubleshoot

 

robocopy is a powerful build in copy and backup tools since windows 7.

usage : robocopy [[ ...]] []

a simple variable version:

set src=c:\sourcefolder
set dest=e:\destinationfolder
set log=c:\temp\log.txt

robocopy %src% %dest% /log:%log%

pause

you can add options like mir,backup mode, timestamp anythings you like.

refernce link:

https://technet.microsoft.com/en-us/library/cc733145.aspx