robocopy C:\Users\username\Documents\ E:\Backup\ /MIR /XJD > Backup.log
echo "DONE" >> Backup.log
Dry Run:
robocopy C:\Users\username\Documents\ E:\Backup\ /MIR /XJD /L > Backup.log
echo "DONE" >> Backup.log
Dry Run:
robocopy C:\Users\username\Documents\ E:\Backup\ /MIR /XJD /L > Backup.log
rem Copy files to backup volume rem /MIR - Mirror files (delete files on destination that aren't on the source) rem /XJD - Exclude junction points for directories (may cause infinite loops) rem /sl - Don't follow symbolic links and instead create a copy of the link. rem /FFT - 2 second difference when comparing timestamps rem /R:3 - Only retry 3 times (default is 1 million) rem /W:10 - Wait time between retries (default is 30) rem /Z - Copies files in restart mode (NOTE: This WILL slow down copying) rem /B - Backup mode - allows copy of open files (must run as Admin) rem NOTE: /Z and /B can be combined as /ZB rem /NP - Don't output progress of copy operation rem /log:backup.log - Logs to backup.log, overwriting old log file (use /log+: to append) rem /tee - Show output on console as well as log file rem NOTE: Use /L to do a "dry-run" set roboargs=/MIR /XJD /FFT /R:3 /W:10 /NP /NDL /log:backup.log /tee rem robocopy C:\source F:\destination %roboargs%To do a full system backup to an external hard drive using the Windows 7 backup program (also available in Windows 8 and Windows 10) run the command sdclt.exe, and choose "Create A System Image".
Comments
Post a Comment