as it is a lot easier to use an external hard drive or a share on another System.
This batch file will do a full Backup the first time that it is run and an incremental Backup afterwards.
Set up a Drive Letter for the Drives. Connect the Drive you are going to use for the Backup. Right click on My Computer, select manage, and then click ?Disk Management.?
Change the drive letter of the drive. Right-click on the drive in the list, and from the resulting menu select "Change Drive Letters and Paths"
Click on Change so you can change the drive letter. Click Change.
Select a new drive letter from the drop down list, preferably the one that is not normally used for this drive. EG: U:
If the USB Drives are identical it should allocate the same drive letter.
You can then copy this batch file to the Drive and run it from there. To automate it use the TaskShedular or run it from an .inf.
munexbck.cmd
=====================
@echo off
:: variables
set path=%~dp0Backup;%path%
set drive=%~dp0Backup
set backupcmd=xcopy /s /c /d /e /h /i /r /k /y
if not exist "%drive%\Backup" mkdir "%drive%\Backup"
:: use below syntax to backup other directories...
:: %backupcmd% "...source directory..." "%drive%\...destination dir..."
if not exist "%drive%\munex" mkdir "%drive%\munex"
%backupcmd% "C:\munex" "%drive%\munex"
======================
This was the original file:
============
@echo off
:: variables
set drive=g:\Backup
set backupcmd=xcopy /s /c /d /e /h /i /r /k /y
echo ### Backing up My Documents...
%backupcmd% "%USERPROFILE%\My Documents" "%drive%\My Documents"
echo ### Backing up Favorites...
%backupcmd% "%USERPROFILE%\Favorites" "%drive%\Favorites"
echo ### Backing up email and address book (Outlook Express)...
%backupcmd% "%USERPROFILE%\Application Data\Microsoft\Address Book" "%drive%\Address Book"
%backupcmd% "%USERPROFILE%\Local Settings\Application Data\Identities" "%drive%\Outlook Express"
echo ### Backing up email and contacts (MS Outlook)...
%backupcmd% "%USERPROFILE%\Local Settings\Application Data\Microsoft\Outlook" "%drive%\Outlook"
echo ### Backing up the Registry...
:: if not exist "%drive%\Registry" mkdir "%drive%\Registry"
:: if exist "%drive%\Registry\regbackup.reg" del "%drive%\Registry\regbackup.reg"
:: regedit /e "%drive%\Registry\regbackup.reg"
:: use below syntax to backup other directories...
:: %backupcmd% "...source directory..." "%drive%\...destination dir..."
echo Backup Complete!
=============