Tamino XML Server Version 9.7
 —  Tamino Manager User Documentation  —

Back up a Database

An important part of database administration is to make regular backups of your database. Database Backup and Restore functions are available from the Tamino Manager. The Backup function makes a copy of the database. The Restore function restores the database to the state it was in when you made the backup. Restore is generally executed together with a Recover process, in which all changes that were made to the database after the backup are re-applied. For this process, log files (log spaces) are used as input files. In this way, all data up to the most recently completed transaction can be restored.

The Backup function is used to make a backup copy of a database. You can make either Tamino (internal) backups to disk or tape, or back up the database to an external backup system.

Warning:
If more than one backup is written to a tape, the existing backup will be overwritten. The savepoint of each backup will be offered in the Restore menu, but only the latest backup will be available. No warning will be issued. You should, therefore, not put more than one backup on one tape.

You can make incremental backups of a database. The first incremental backup after a full backup stores the database changes that were made since the full backup. If there are several incremental backups since the most recent full backup, each incremental backup after the first one stores the changes since the preceding incremental backup. Since in general an incremental backup is much smaller than a full backup, the time required to make an incremental backup can be considerably less than the time required to make a full backup.

Incremental backups provide a useful extension to Tamino's backup capabilities. If you decide to include incremental backups in your backup strategy, you should keep a sensible balance between incremental backups and full backups. Regular full backups should still be the central part of your strategy, and the incremental backups can be considered as a quick and safe way of protecting against data loss in the intervals between the full backups.

The following general restrictions apply for backups:

For further information about backup and restore policies, please refer to the Backup Guide.


Backing up a Database to Disk or Tape

This section describes how to back up a database internally, i.e. to disk or tape.

General Procedure

Start of instruction set To back up a database to disk or tape

  1. Expand the database object that you want to back up.

  2. Ensure that the database you want to back up is started. Refer to the section Start a Database for details.

  3. Select the object Backups and choose Backup from the context menu.

  4. The dialog you now see depends on whether you have defined an external backup method.

    If you have defined an external backup method, the dialog Select Backup Method appears:

    graphics/snapshot2.png

    In the drop-down box Backup Method, choose the menu entry Tamino Backup to perform a standard backup, or choose one of the available external methods. If you choose an external method, see the section Backing up a Database using an External Backup Environment for a description of how to proceed.

    If you have not defined an external backup method, proceed to the next step directly.

  5. The Backup page appears.

    graphics/backup.png

    The checkbox for Incremental Backup is visible if you have activated this option for the database (see the section Considerations for Incremental Backup).

  6. Select one or more locations where the backup will be stored. If you define more than one location, they will be used in the same order as in the list. Select an available database location and choose Add to add it to the list of backup locations, or choose Add All to add all available database locations to the list of backup locations. If you add a database location to the list of backup locations by mistake, you can remove it from the list by selecting it and choosing Delete, or choose Delete All to remove all backup locations from the list (locations that are deleted from the list are returned to the list of available locations). You can change the order of the locations in the list by selecting a location and using the Move Up and Move Down buttons.

    Note:
    Although not recommended, it is possible to select combined file system/tape locations. The file system should be added first. If the file system is full, the backup continues to the tape. However, you should avoid specifying a file system location after a tape location because once the tape is full, you will be prompted to enter another tape.

  7. If you select more than one backup location (which is most effective if the locations are on physically different hard disks), they will be normally filled/written to sequentially. If the associated backup devices are relatively slow (tape drives, for example) you can speed up the backup process by performing parallel I/Os to the specified backup spaces.

    Notes:

    1. If you perform a parallel backup to a given number of drives/devices, you will require the same number of drives/devices for the corresponding restore procedure.
    2. The parallel backup feature is currently only available for UNIX platforms. If you select it on a Windows platform, the backup will be performed sequentially, and a warning message will be issued.
    3. The parallel backup feature is not available for making incremental backups.
  8. Choose OK to back up the database.

    The backup process is started. The page Job Monitor appears, informing you of the progress of the operation. The database is backed up when you see the message like this:

    Backup of database 'my-database' successfully completed.

    If you now expand the Backups Option in the upper left window, the backup is listed with time and date information.

Considerations for Incremental Backup

The incremental backup feature is selectable for each database individually, i.e. you can activate it for one database and deactivate it for another. When you use the Tamino Manager to activate or deactivate the feature for a particular database, the change takes effect the next time the database server is restarted.

To specify that a database can be used for making incremental backups, do the following:

Start of instruction setTo specify that a database can be used for making incremental backups

  1. In the Tamino Manager, select the node of the database.

  2. Expand the tree of the node.

  3. Expand the Properties node.

  4. In the context menu of the Server node, select Modify.

  5. Set the value of the property incremental backup to "yes" and choose OK.

The following restrictions apply for incremental backups:

Top of page

Backing up a Database using an External Backup Environment

This section describes how to back up a database to an external environment. The external environment must first be defined, as described in the section Define an External Backup Method.

Start of instruction set To back up a database using an external backup environment

  1. Expand the database object that you want to back up.

  2. Select the object Backups and choose Backup from the context menu. The Create Backup - Select Backup Method page appears.

    graphics/snapshot2.png

  3. Select a backup method from the Backup Method drop-down list box and choose Next.

    If you select the method Tamino Backup, the Backup page appears, and you continue as described in the section To back up a database with no external backup environment defined.

    If you select an external backup method (Network Appliance Filer Snapshot, Network Appliance Filer Mirror or EMC TimeFinder), then choose Next, the Create Backup - Select Backup Configuration page appears.

  4. Select an appropriate configuration from the Backup Configuration drop-down list box and choose Finish to start the backup (in the case of Network Appliance Snapshot, you have to enter a descriptive backup configuration name for the backup in a corresponding text box before you start the backup procedure).

Top of page

Using Backup Generations

Make sure to develop a backup strategy that gives you maximum protection for your data. If you have many update operations per day, it is recommended that you also back up the database at least daily. The number of backup generations to be retained can be defined using the backup parameter Number of Backup Generations. If you maintain for example seven backup generations, you have one backup for each day of the week. When you create the 8th backup, the first one will be deleted.

Note:
Backup generations apply to full backups only, not to incremental backups.

Start of instruction setTo define the number of backup generations:

  1. Expand the database object, expand Properties and choose Server.

    A page with information about the database appears. One of the items is Number of backup generations.

  2. Choose Modify from the context menu of the Server object.

    The modifiable properties are displayed. You can change the value of Number of backup generations by overwriting the existing value with a new value and clicking on OK.

    graphics/ba_numbc.png

Refer also to the section Internal Backup and Restore in Tamino in the Backup Guide for more issues concerning backup generations.

Top of page