User Tools

Site Tools


blog:simple_backup_procedure_for_windows_c_t_bff

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blog:simple_backup_procedure_for_windows_c_t_bff [2009-05-27 08:51] brbblog:simple_backup_procedure_for_windows_c_t_bff [2009-06-14 08:49] (current) brb
Line 1: Line 1:
 ====== Simple backup procedure for windows (c't bff) ====== ====== Simple backup procedure for windows (c't bff) ======
-Backing up your files should be fast and easy, so that you can do it regularly. In the german computer magazine c'(recommended!), a simple and efficient backup script was presented, which has some unique features:+Backing up your files should be fast and easy, so that you make a backup every day (or at least weekly if you are lazy and your work is not so important :-\). In the german [[http://www.heise.de/ct/|computer magazine c't]], a simple and efficient backup script was presented, which has some unique features:
   * works on any windows machine, without installing additional software!   * works on any windows machine, without installing additional software!
   * runs very fast   * runs very fast
   * gives a report of the result of the backup   * gives a report of the result of the backup
  
-For windows XP machines, here is the script:+=====  ===== 
 + 
 +Setup of the bff.bat script: 
 +  - think where you will store your backups. You need a drive letter to store your backups to. This can be a thumb drive or a network drive.  
 +  - start notepad, copy-paste the script below into notepad. Change the values of ''Quelle'' and ''Ziel'' to fit your environment. 
 +  - safe the file as bff.bat 
 +  - Here are some ideas on how to run the bff.bat script, from the simple to more sophisticated. 
 +    * Place a link to bff.bat on your desktop 
 +    * Place a link to bff.bat in your autostart script 
 +    * place bff.bat on an external drive, and create an autorun.ini so that bff.bat automatically runs when the drive is plugged in. 
 + 
 +Notes: 
 +  * For a more sophisticated backup using rsync see http://www.heise.de/ct/ftp/06/09/126/ 
 +  * If you don't have windiff on your machine, you can install the [[http://www.microsoft.com/downloads/details.aspx?displaylang=de&FamilyID=49ae8576-9bb9-4126-9761-ba8011fabf38|Windows XP SP2 Support tools]] 
 + 
 +For windows XP machines, here is the script. You can find the zipfile for all windows versions on the [[http://www.heise.de/ct/ftp/03/08/160/|c't homepage]] 
  
 <code winbatch> <code winbatch>
 set Quelle="C:\Dokumente und Einstellungen" set Quelle="C:\Dokumente und Einstellungen"
- 
 set Ziel="D:\Backup\%date%" set Ziel="D:\Backup\%date%"
- 
 set templog="%temp%\temp.log" set templog="%temp%\temp.log"
- 
 ; ;
- 
 echo . >>%windir%\backup.log echo . >>%windir%\backup.log
- 
 echo Starte Backup: %date% %time% von %Quelle% nach %Ziel% >>%windir%\backup.log echo Starte Backup: %date% %time% von %Quelle% nach %Ziel% >>%windir%\backup.log
- 
 md %Ziel% md %Ziel%
- 
 xcopy %Quelle% %Ziel% /m /s /v /c /i /f /h /k /o /x /y >>%windir%\backup.log xcopy %Quelle% %Ziel% /m /s /v /c /i /f /h /k /o /x /y >>%windir%\backup.log
- 
 echo Starte Überprüfung >>%windir%\backup.log echo Starte Überprüfung >>%windir%\backup.log
- 
 start /w windiff.exe -Sdx %templog% -T %Ziel% %quelle% start /w windiff.exe -Sdx %templog% -T %Ziel% %quelle%
- 
 find "different" %templog% >>%windir%\backup.log find "different" %templog% >>%windir%\backup.log
- 
 echo Fertig >>%windir%\backup.log echo Fertig >>%windir%\backup.log
- 
 start notepad.exe %windir%\backup.log start notepad.exe %windir%\backup.log
- 
 ; ;
- 
 rem Erstellt 2003 von Axel Vahldiek / c't rem Erstellt 2003 von Axel Vahldiek / c't
- 
 rem mailto: axv@ctmagazin.de rem mailto: axv@ctmagazin.de
 </code> </code>
blog/simple_backup_procedure_for_windows_c_t_bff.1243407109.txt.gz · Last modified: 2009-05-27 08:51 by brb