I use something called
ROBOCOPY, that is if you are using
Windows. I mean its free, it's a batchfile.
FOR MORE INFORMATION CLICK ON THE "How to Create a Backup Script Using the ROBOCOPY Command" BELOW.
How to Create a Backup Script Using the ROBOCOPY Command
Information
There are many paid and free software solutions available to backup critical data and files on a computer system. Many users, however, are unaware of an inbuilt Windows 7 command called ROBOCOPY (Robust File Copy) that allows users to create simple or highly advanced backup strategies.
In its simplist form, ROBOCOPY can be likened to an extension of XCOPY on steroids. Some of the more important features that make ROBOCOPY an attractive backup alternative are:
multi-threaded copying
mirroring or synchronisation mode between the destination and source
automatic retry and copy resumption
The examples shown below are primarily geared towards less experienced users, especially those that are unfamilar with batch file creation and running. More experienced users, however, are welcome to explore some of the advanced functionality offered by ROBOCOPY here:
http://technet.microsoft.com/en-us/library/cc733145(WS.10).aspx
and also here:
http://www.theether.net/download/Mic...s/robocopy.pdf
or by simply typing robocopy /? at a cmd window prompt.
-------------------------------------------------------------------------------------------------------------------------------------------------------
Note
ROBOCOPY is a FOLDER copier, not a FILE copier - the source and destination syntax arguments in ROBOCOPY can only be folder names.
-------------------------------------------------------------------------------------------------------------------------------------------------------
The general format of the ROBOCOPY command is:
Code:
robocopy <source> <destination> <options>
In the empty Notepad document, the simplist form of the command would look like this:
Code:
robocopy E:\Data1 G:\Backups\Data1
robocopy F:\Data2 G:\Backups\Data2
robocopy F:\Data3 Q:\Backups\Data3
pause
Tip Tip
If source or destination paths contain spaces in them, enclose these in double quotes e.g. "C:\My Data\My Music"
Only the source
E:\Data1
F:\Data2
F:\Data3
and the destination
G:\Backups\Data1
G:\Backups\Data2
Q:\Backups\Data3
are mandatory inputs into the ROBOCOPY command.
---------------------------------------------------------------------------------------------------------------------------------------------------------
In order to utilise some of the powerful functionality in ROBOCOPY, I need to utilise some options in the ROBOCOPY command line. In this next example I want to edit my existing backup strategy such that:
All sub-folders within my data folders are backed up, even if they are empty.
The backup only copies newer files to my existing backup - this means a faster backup time.
The percentage progress counter for copying is not shown - this neatens the overall appearance of the ROBOCOPY information, and creates a smaller log file.
The information normally echoed to the cmd window is saved to a log file that I can examine at a later stage.
In order to do this, I need to specify some additional options in my ROBOCOPY commands like this:
Code:
robocopy E:\Data1 G:\Backups\Data1 /e /mir /np /log:backup_log.txt
robocopy F:\Data2 G:\Backups\Data2 /e /mir /np /log+:backup_log.txt
robocopy F:\Data3 Q:\Backups\Data3 /e /mir /np /log+:backup_log.txt
pause
Where:
/e = copy all sub-folders, even empty ones
/mir = mirror (check the files in the destination, and only copy newer files)
/np = no progress counter
/log: = create a logfile