Here’s a simple script to help you backup one critical folder to your USB drive.
Here is how the script works. The script resides on the root of your USB drive and not on your computer. When you insert the drive, an autorun window pops up asking you if you would like to run the backup. If you choose to run the backup, the script checks your computer’s SID against a previously stored SID (I will explain how you can store that SID) and if they match, the script then uses robocopy to mirror your source folder to the USB drive. The SID check was put in place to prevent the script from accidentally removing important data.
How to use the script:
- Download the script from here.
- Extract it to a USB drive (the autorun files and the _BackupSetup folder need to be on the root of the USB drive.)
- Connect the USB drive to the computer you want to back up and then run _BackupSetup\UpdateSID.bat and follow the prompts to create your SID.
- Edit _BackupSetup\RunBackup.bat and update the SOURCE variable to point to the directory that needs to get backed up.
- Run the Autorun.bat script in the root of the USB drive and off you go!

Recent Comments