![]() |
Backup Solutions - CobianPage updated 5 September 2008 |
Backup is to protect us from loss of our important data. Loss can arise from hardware failure, e.g. the disk drive failing or some forms of computer crash, or our own failings when we have that Oh S**T!! moment when we delete an irreplaceable file or folder. It the latter case the recycle bin may be our salvation, but not always.
There are effectively three approaches to backup up computer data
Note that any simple backup strategy will hold data for a limited period of time. If that time is exceeded then the data will be lost. If long term recovery is envisaged then the backup strategy needs to be elaborated. this goes beyond the scope of this page.
There are several candidate packages available. these include Syncback, Karen's Replicator and Cobian to name but a few.
When looking for backup software, and having tried several, I was looking for a solution that provided the following features
| Feature Wish List | Cobian's Support for Feature |
|---|---|
|
Ability to backup data automatically on a schedule without intervention. |
Cobian supports multiple jobs that can each be scheduled |
| Ability to backup without significant impact on the computer that is being backed up. | Cobian behaves in a friendly way. It can be configured to run at a lower priority than normal programs and hence is almost totally transparent in its use. |
|
Ability to backup files, such as Outlook Express, without shutting down those programs. |
Cobian can us Volume shadow copying enabling it to backup files that are in use |
|
Ability to optimise disk usage |
Cobian supports backup cycles. See below for more details |
| Ability to restore computer data to an earlier state |
This is the area where Cobian is weakest. It has no facility for automatic restoration. Windows Explorer can be used to copy the files manually |
|
Ability to select what is backed up. this involves both inclusion of items and selective exclusion |
Cobian has support for inclusion and exclusion of explicitly specified files or folders or wild cards |
|
Ability to backup:
|
Cobian can be configured to run using an administration account so that it has permission to copy any user's data The registry copy is not directly supported but Cobian has the facility to run a program prior to the backup starting enabling third party tools to be executed. ERUNT is a registry backup program that can be run from a command line that can readily be integrated into Cobian's backup schedule. |
I was unable to find any other programs that came close to meeting these requirements and were free. Syncback Pro probably comes closest but is not freeware.
When choosing a backup strategy one important factor to consider is how much data to backup and how often. This must also be balanced against how long the backup takes and how much storage it requires.icy-spindown-fix.html
Storage requirements can be optimised using data compression.
Cobian
supports this but I have chosen not to use it. I am content with other
optimisation methods described below.
There are three principle ways of backing up a set of files using
Cobian:
| Type | Backup Comments | Restoration Notes | Comparison |
|---|---|---|---|
| Full Backup | All files in the set are backed up each time a backup is run | Restoration is easy in that all the most recent files are always available in a single folder | Increased size of backup set compared with differential and incremental |
| Differential |
This is used in conjunction with a full backup All files that have changed since the last full backup are backed up |
Restoration is relatively easy in that you need to restore the last full backup and then the most recent differential backup | Size is reduced from a full backup but backup time and size required increases with each successive backup |
| Incremental |
This is also used in conjunction with a full backup All files that have changed since the last backup (whether full or incremental) are backed up each time the backup is run |
Restoration needs care to ensure that all the files are recovered. You may need to apply all incremental backups successively from the full backup.The functionality tab also has some options that you may want to experiment with. | Smallest amount of disk space used. |
The trade-off between storage used and time take and easy of recovery is a personal decision. It is also necessary to think about the reasons for backing up data in the first place. We back data up so that we do not lose it. Loss however can occur from hardware failure but can also arise from human frailty. How often do you have an oh s**t moment when you have deleted a vital file.
For pure disk recovery it may only be necessary to keep yesterdays full backup. To protect against accidental deletion may need to keep files going back indefinitely.
Each of us has to make our own decision and here is my current strategy.
I backup the following file sets
The rationale is that different types of data may need a different backup strategy. The address book for example is important and entries can all too easily be deleted from it accidentally. there is only one file and each time it changes it will be recorded if incremental backups are taken. There is therefore no need to ever take a full backup as this will just waste space. Email is similar in that each folder (at least with Outlook Express) contains many emails. By default all of these are contained within documents and Settings. Most of the other entries within Documents and Settings are far less important.
I use a full backup weekly with a daily incremental backup.
I keep four full sets. This allows me to go back one month.
I have structured my disk as follows, this is to simplify backing up the data
I also take a full drive backup of by C drive and U drive periodically (interval still to be determined). I am also currently taking a backup of my S drive but intend to discontinue this.
The following installation and configuration instructions are based on this configuration.
Here is the link to Cobian home page http://www.cobian.se/ - select software and then backup. The version we are using is Cobian 9.
Installation follows normal windows practice. Double click on downloaded file. Click on screenshot to show a full resolution image (resize window if necessary).
| Installation Instructions | Screenshot |
|---|---|
|
Install by double clicking on the downloaded executable install file. The first choice is to choose a language. The default is English but perhaps you have reason to select an alternative! the rest of this page assumes English! Click OK to continue |
|
|
We are now presented with a license agreement - read every last full stop and comma ;-) as one always does! Click on the checkbox to accept the agreement and click Next to continue. |
|
|
The default installation location is normally acceptable. Click on Next to continue. |
|
|
The next screen requires some explanation. For fully automated operation it needs to be installed as a service. This means that part of the program is always there waiting to be run. The user interface interacts with this resident component. This option is the default. We must also choose the account name that must be used to run the program. enter the user name and password. Note that it can easily be changed later. More details below. |
|
|
Here is the final screen. If an error was detected e.g. the user account credentials were incorrect then the installation would fail and the error message would be visible. Clock on Done to complete the process. Cobian is now running on your system and a nice toadstool icon should have appeared in your tray at the bottom of your screen. Skip forward to the configuration section |
Cobian should be installed as a service so that it is always there and ready to run whenever the computer is switched on. You do NOT need to be logged in for the backup to take place. When Cobian runs backup jobs it needs to have read access the files that need to be backed up. It must also have write access to the storage device. This means it must run with user account credentials that git it access to all the necessary files.
Windows file permissions are not too difficult to understand. Briefly however it is normally sufficient to configure Cobian to run as an administrator to be able to access local files.
Note that if you are backing up across a network blank passwords are not normally acceptable. It is also important that Cobian has permission to create folders and write files on the networked computer. This usually requires that a matching account (username and password) is created on the networked device.
My solution to this account issue is to create an account with administrator privileges specifically for Cobian. With windows this would normally then appear on the initial Welcome screen but this can be hidden see below.
A further constraint, if you are using a networked NAS device or a network connection to another computer, is that it may not support user names containing space characters. Mine did [John (Administrator] and I had to create new accounts to get round this issue.
If you need to create a new account follow the steps below:
A new account has now been created and will appear on the Welcome screen when you boot up. This can be hidden as follows.
| Instructions | Screenshot |
|---|---|
|
Download the VBS Hide user file :- go to Doug Knox's site http://www.dougknox.com/xp/scripts_desc/xp_hide_users.htm Click the download link indicated to download the .vbs file and save it to the desktop or anywhere else that is convenient. Note that you could also download the unhide script if you ever want to revers the process. |
|
|
A security warning will appear asking if you want to open this file - of course you do! Type in the user name e.g. backup you chose and click OK. The username should no longer appear on the Welcome screen. |
Click on the Desktop icon or use the Start/run menu to start the program.
There are several selections on the left hand pane that we will not be looking at in detail
This is where we really get to grip with what the program is for. Backup up our computer!
We will look at some of the options available. You may have different requirements but the approach below should enable you to tailor the backup jobs to suit your own circumstances.
The initial display shows the General options. You can always return here by selecting it again.
The screenshot shows the initial state of this window. Configuration steps are shown in the Left pane and details to be entered on the RH pane. Any of the options can be changed at any time. The OK and Cancel buttons will appear on all configuration pages - ignore them until you have configured everything. the second screenshot shows a typical set of parameters.
When Cobian runs it will use a destination folder that we will specify on another configuration page. When it starts this task It will create a sub folder based on the task name and the current date and time. this makes it easy to find a file-set by date.
Windows file systems have a flag or attribute associated with every file. This flag is set every time the file is written to. This was invented to assist backup programs to identify files that have been changed since the last backup. This of course only works if the backup program clears this flag when they have backed up the file. The Clear archive bitClear archive bit option does just that.
There are some circumstances where this facility does not work. One situation arises if you are backing up a Linux/UNIX file store across the network. In this case you would probably want to change the default settings.
There are three (or even four) types of backup.
If you have been reading this carefully you may be wondering how an Incremental backup can have a full backup associated with it. Cobian is clever. It will always make the first backup a full backup when you select Differential or Incremental.
You have further options
In should be noted that if the general option to delete empty folders is selected then although Cobian will check all the files and report that the backup has been complete, and will show an entry in it's history window, no folders will remain on the destination. See below for more information
This tab will select the folders and/or files that will be included in the backup task. Several folders or files can be selected as the source.
Several folders can be selected as the destination in which case the files will be copied to ALL destinations.
We now set the schedule to cause the backup to run at regular intervals.
This allows you to zip the archive copies. I have not used this option and have therefore not shown the configuration details.
This is where we can chose whether to include or exclude files from within the folders selected in the files tab. You will not always need to use this tab but it can be useful with the documents and settings folder to apply different backup strategies to selected areas of the source folder.
An example of this is to EXCLUDE all Outlook Express email from the standard backup nd then to backup OE email separately. This is part of my own strategy. I also exclude the Address book and back this up separately as well.
Note that there is a significant amount of data in Documents and Settings that almost certainly does not need to be regularly backed up. To be certain however takes considerable research and I am still investigating. Remember that it is better to back up more than you need rather then missing a vital file because you were mistaken.
This tab is used when you need to run a program (or more) before taking a backup. this can be used for taking a backup of that dreaded Windows Registry!
There is a program called ERUNT. Download instructions are below. This has "command line2 parameters that control what it does. These are described in a file which accompanies the program.The parameters shown in the example will backup the current system, user, other users registry hives (that is what the individual parts of the Registry are called).
It is assumed that the registry backup will take place to C:\Windows\ERDNT. This folder does not need to exist but it might be more convenient for setting up the source folder for the backup if it does. Create it manually.
Create a backup task to backup C:\Windows\ERDNT to your chosen backup device.
| Configuration Step | Screenshot |
|---|---|
|
Click on Add, select Execute and Wait and browse to the folder where ERUNT is installed and click on the file ERUNT.EXE. A new dialog box will open where additional parameters can be entered. Enter the following (copy and paste), the parameters are explained below. C:\Windows\ERDNT sysreg curuser otherusers /noconfirmdelete /noprogresswindow A warning will appear that if the called program does nt terminate then the backup will never finish. We must however wait until it finishes so we can thank the Cobian author for his concern but we can click on OK and continue. Registry backup will take a while to complete. When this finishes however, if you have correctly set up a backup task to copy the folder to the archive device your registry will be safely backed up. Note that restoring the registry requires the use of a different program ERDNT. ERUNT kindly places this executable file with the backup of the Registry. |
Initial form: Completed form: |
ERUNT can be down loaded from http://www.larshederer.homepage.t-online.de/erunt/
The parameters used in the Event window are as follows:
| Parameter | Description |
|---|---|
| C:\Windows\ERDNT | This is the folder where the backup will be stored. It does not need to exist and will be created as required |
| sysreg |
System registry: The current system registry, usually consisting of the files DEFAULT, SAM, SECURITY, SOFTWARE, and SYSTEM |
| curuser |
Current user registry: The registry files for the currently logged-on user, usually NTUSER.DAT and USRCLASS.DAT |
| otherusers |
|
| /noconfirmdelete |
This will delete any existing files without prompting the user - essential for unattended backup |
|
/noprogresswindow |
This suppresses the backup progress window. This could be intrusive if it popped up while you were working. |
We have configured Cobian to backup out system - how does it behave?
Cobian will normally sit quietly in the background minding its own business waiting for the time you have defined to come round. You can always wake up the user interface by double clicking or Right clicking on the toadstool icon in the system tray.
| Description | Description |
|---|---|
|
When you start the program now you will see a list of tasks in the left hand pane. It will normally select the Properties Tab on the Right Hand pane as shown here. You are able to select one or more tasks by clicking on a task to select a single item. By holding down the CTRL key and clicking on several tasks you can select more than one. |
|
|
When you select a single task it shown a summary of the properties of that task. It auto Note that double click on most properties takes you to the screen where these can be changed. Selected tasks may be run manually by clicking on the icon above this pane containing a single floppy disk image (hover the mouse to confirm). All tasks can be run by clicking the icon to the left showing two floppy disks. |
|
|
With a single task selected you may look at the history of the backups. When you first start this will be empty. when the program has been running for a time it will show a series of Full backups followed by a set of Incremental backups. The screenshot shows my desktop computer with three full backups (the number I have asked it to keep) and six incremental backups in between apart from the last. The cycle is not complete in this example. It adds one of these each day. when the configured maximum number of Incremental backups has been completed Cobian will make the next backup into a full backup. If the maximum number of backups has been exceeded it will delete older full backups and all dependent Incremental backups. However see delete problem described below. |
|
|
When a task is running a log is created. the pane, by default, only shows the current job. In this case one file was backed up. Note that when automatically backing up the log is still created and can bee seen if the user interface window is opened. I tend to only look at it if I am testing a new configuration. i leave Cobian to continue to do its job. |
Empty folders arise when using incremental backup and no files have changed within that folder. This will happen frequently if the number of documents changed per day are few.
Selecting to option to delete empty folders removes all empty folders, The benefit of this is that it is easier to determine when a file was last changed. The deletion goes as far as the root folder which is also deleted. This is OK but Cobain appears to retain an entry on it's own records. When it comes to delete these folders it does not always remove entries where the folder that should be deleted does not exist. They can be deleted manually.
Note that this fault is not totally repeatable