Auto Backup

Christian Darrall

Active Member
Well on my friends pc he has a backup program that backs up his pc on shutdown,

Now what software can backup the essential "My documents" folder in windows 2000.

thanx

Chris
 
The program i created may actually help you. First, open up notepad and then type the following code in, then save it as backup.bat

Code:
@echo off
:: variables
set drive=C:\BACKUPS
set backupcmd=xcopy /s /c /d /e /h /i /r /k /y


echo #### Backing up Favorites...
rmdir /s/q "%drive%\Joanne\Favorites"
%backupcmd% "C:\Documents and Settings\Joanne\Favorites" "%drive%\Joanne\Favorites"
echo ****** Favorites... Complete! ******
echo .
echo .


echo #### Backing up the Registry...
if not exist "%drive%\Registry" mkdir "%drive%\Registry"
if exist "%drive%\Registry\regbackup.reg" del "%drive%\Joanne\Registry\regbackup.reg"
regedit /e "%drive%\Registry\regbackup.reg"
echo ****** Registry... Complete! ******
echo .
echo .


echo #### Backing up My Documents...
rmdir /s/q "%drive%\Joanne\My Documents"
%backupcmd% "C:\Documents and Settings\Joanne\My Documents" "%drive%\Joanne\My Documents"
echo ****** My Documents... Complete! ******
echo .
echo .



echo Backup Complete!

You are going to want to change the locations of the files which you want to backup, and change where the backup files go. Then you can set this program to run at logon or logoff with a certain utility or use the one built into Windows.

This may be a little confusing for you, so if you tell me the directories (location) of the folders you want backed up, and the location of the backup drive, then I can code it for you.
 
ok your a star

its D:\documents and settings\Christian Darrall\My documents

and for now i want it to go onto the desktop

but if you can point put what the line that determins the location of the backup, and ill change it when the C: get reapaired
 
Back
Top