Adabas supports backing up databases using foreign, external backup systems. Such systems have several advantages over the backup utility ADABCK:
a database that is split across several disks can be backed up or restored in a relatively short time.
a volume mirror with the database containers can be easily restored.
These features can considerably reduce the time required to recover a database from a disaster situation.
For an offline database, there are no special considerations to be taken into account, and the external backup system can be used without any Adabas-specific actions being required. However, there must not be any updating utility functions active (e.g. ADAMUP).
For an online database (if it is to meet the 24 x 7 requirement), the external backup system can only be used if the Adabas database is in a synchronized state. The parameter EXT_BACKUP of the operator utility ADAOPR can be used to ensure this: the keywords PREPARE and CONTINUE can be used.
EXT_BACKUP=PREPARE brings the database into a transaction-consistent state. New transactions will be blocked, but transactions that are currently open will continue processing. Database access and control calls are not delayed. The following restrictions apply:
EXT_BACKUP=PREPARE will only be permitted if there are no updating utility functions active (e.g. ADAMUP).
New utility update functions will be blocked or rejected.
The ADAOPR functions SHUTDOWN, CANCEL, LOCK, STOPUSER, UNLOCK and FEOF=PLOG are not permitted once the EXT_BACKUP = PREPARE call has finished processing.
Non-activity timeout checks are suspended.
If the EXT_BACKUP=PREPARE call is successful, the database is in the required state, and the following message is written to the database log file:
%ADANUC-I-EXTBPREP, preparing for external backup, (time stamp)
The external backup system can now be started to perform the backup. Once the backup has been made, EXT_BACKUP=CONTINUE should be used to lift the transaction-blocking mode and continue normal database operations. The following actions are performed:
A new PLOG (implicit FEOF=PLOG) with a new session number is opened.
Updating utility functions are reenabled.
Non-activity timeout checks are reenabled.
Suspended transaction commands are resumed.
After successful completion of the EXT_BACKUP=CONTINUE call, the following message is written to the database log file:
%ADANUC-I-EXTBCONT, continue from external backup, (time stamp)
If an Adabas database is to be restored from an external backup system, the database must be offline, so there are no Adabas-specific considerations to be taken into account
Notes:
The examples subdirectory of the installation contains some procedures that simplify the use of external backups and restores. There is one program each for backup and restore - these procedures are triggered by a configuration file. See the configuration file xxx_conf for detailed information. These procedures currently support the following system:
Network Appliance (Filer snapshots, files napp_*)