Incremental backup of data with .BAT (Batch)

Last update on November 9, 2009 09:36 AM by jak58
Published by deri58

Incremental backup of data with .BAT (Batch)






Use of incremental back up


Incremental back up can be used to save your important data before you format your computer.
During the first batch launch, all the files and folders are saved and when relaunched after 2-3 weeks, all the changes made are saved.

As for the above given example, the files are saved at the root C under the partition D in the back up file and favorites ("% USERPROFILE%" is the variable of "Documents and Settings \ username").The switches: E / H / R / Y / I / D, are used to copy the system hidden files ,.... For more information, open the command prompt (cmd.exe) and type xcopy/?

Example


First of all, open the notepad and copy:
@echo off
xcopy C:\Docs D:\Backup\Docs /E /H /R /Y /I /D
xcopy "%USERPROFILE%"\Favoris D:\Backup\Favoris /E /H /R /Y /I /D
pause


Then click on File > Save as > name the file extension as name.bat( the name is optional) and select file type as all files.



Launch the file to copy the data from C to D.


Note: Depending on your needs, you can change the letter of drives in the script.
Best answers for « Incremental backup of data with .BAT (Batch) » in :
Rdiff-backup: making effective and incremental backups Show rdiff-backup: making effective and incremental backups Intro: Installing rdiff-backup Making a Backup Listing available backups Deleting old backups Restoring files Miscellaneous options Setting up default backup...
Backup Outlook 2003 data Show Backup Outlook 2003 data All Outlook 2003 data ( Emails, Agenda, Contacts, Tasks...) are in one file with .pst extension The file is in the following default folder: C:\Documents and Settings\Login\Local Settings\Application...
Writing in batch in text file ShowWriting in batch in text file To write in a file text, you just have to use a redirect: echo text > output_file.txt To write in an existing file: echo " Write at the end of the file ">> output_file.txt
ACER PC Restore to factory settings ShowACER PC Restore to factory settings Run Acer eRecovery Management Copy the Acer factory default backup disk Image Create backup of the system Create a complete backup Creating an incremental backup Erase a backup point Using the option...
Backup/Restore Mysql database ShowBackup/Restore Mysql database Backup Restore your database Note A simple approach on how to backup and restore MySQL databases. Backup To save an existing database it is recommended that you create a dump. To dump all...
Download Rhinoback x64 ShowRhinoback x64 is a secure service and reliable designed for 64-bit operating systems Windows 2003, XP, Vista. The program offers an incremental backup, file encryption and support for Exchange Server, SQL Server, MySQL. Advantage The data is...
Download Handy Backup DVD ShowDVD Handy Backup is a powerful tool for automatic backup. The program supports many types of storage media: DVD, CD-R/-RW, Blu-ray, HD DVD, USB, Flash, FireWire, FTP, LAN, hard disk. Advantage It can also make complete or incremental backups and...
Backup ShowBackup Setting up a redundant architecture ensures that system data will be available but does not protect the data against user-introduced errors or against natural disasters such as fires, floods or even earthquakes. Therefore it is necessary to...
Data transmission - Cabling ShowCabling types Several physical data-transmission media are available to connect together the various devices on a network. One possibility is to use cables. There are many types of cables, but the most common are: Coaxial cable Double twisted...
OOP - Data encapsulation ShowThe concept of encapsulation Encapsulation is a way of organising data and methods into a structure by concealing the the way the object is implemented, i.e. preventing access to data by any means other than those specified. Encapsulation...