Description
This script uses robocopy to backup a specified folder to your specified destination. The switches are set to mirror the source and destination, copy empty folders, retry after 10 seconds, wait 10 seconds between retries, use 4 threads, and append all actions to 1 logfile. You can setup a scheduled task to run this batch file to trigger daily/weekly to automatically backup your important data.
Source Code
@ECHO OFF
robocopy <Source> <Destination> /mir /e /R:10 /W:10 /mt:4 /log:Backup_Log.txt
robocopy <Source> <Destination> /mir /e /R:10 /W:10 /mt:4 /log+:Backup_Log.txt
robocopy <Source> <Destination> /mir /e /R:10 /W:10 /mt:4 /log+:Backup_Log.txt
exit