Skip to main content

Backup Your Flash Drive

Step 1: Create the folder you want to backup to (Mines c:\removablebackup)
Step 2: Create the backup batch file for your USB key. You can do this by inserting the following in a text file and saving it as backup.bat. An example is provided below:

@echo off
echo -------------------
echo Removable Device Automatic Backup
echo -------------------
echo No Rights Reserved, do whatever you want with this.
xcopy "*" "c:\removablebackup\" /Y /E /R
echo Backup Complete!
Pause.

Make sure you change the section in bold to reflect your individual backup location.

Step 3: Place the following in a text document, and save it directly to your removable drive as autorun.inf:

[autorun]
action=Backup
open=backup.bat
label=Backup
includeRuntimeComponents=True

Step 4: Your done! Now whenever you insert your USB key you should see this nifty backup option



Comments