Incremental backup of data with .BAT (Batch)

Last update on November 29, 2008 08:16 AM by deri58
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 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 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.
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...
Download Rhinoback x64 Show Rhinoback 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...
Backup Show Backup 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...
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 Outlook 2003 data ShowBackup 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...
Renaming multiple files in batch ShowRenaming multiple files in batch Native features Using a third-party program Renaming a large number of files can quickly become tedious. Fortunately, there are tools to automate this task in many cases: Native features On Windows...
Download Cobian Backup ShowCobian Backup is a multitask application allowing to plan an automatic maintenance of files or directories towards a destination in place or on a distant machine. The maintenance of site FTP is also possible, in both directions! This program can be...
Download Disk Recovery Wizard ShowDisk Recovery Wizard is a tool to backup data. It allows to restore the damaged, corrupt and inaccessible data on a hard disk and even the formatting. A wizard guides you step by step to facilitate the operations. Disk Recovery Wizard supports any...
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...
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...
FTP protocol (File Transfer Protocol) ShowIntroduction to FTP protocol FTP protocol (File Transfer Protocol) is, as its name indicates a protocol for transferring files. The implementation of FTP dates from 1971 when a file transfer system (described in RFC141) between MIT machines...
Data transmission - Introduction ShowData representation The purpose of a network is to transmit information from one computer to another. To do this, you first have to decide how to encode the data to be sent, in other words its computer representation. This will differ according to...