Backing up related databases together
Data in multiple repositories is often related, especially when UCM is in use. Related databases should be backed up together.
About this task
- UCM PVOBs and the component VOBs they reference are connected by hyperlinks.
- Administrative VOB hierarchies (see VOB datatypes and administrative VOB hierarchies) are connected by hyperlinks.
- In an environment that uses UCM and Rational® ClearQuest®, PVOBs store references to records in Rational ClearQuest databases, and Rational ClearQuest databases store references to objects in PVOBs.
UCM operations such as joining a project, making an activity, delivering or rebasing a stream are likely to change the data in multiple related databases and, in some cases, the relationships themselves. Even if UCM is not in use, changes in an administrative VOB hierarchy (for example, creating a global type and a local copy) can affect multiple VOBs with a single operation. The longer the interval between the time that the first member group of related databases is backed up and the time that the last member is backed up, the greater the chance that these relationships will be skewed when any of the backups are restored.
- Lock all the VOBs and the Rational ClearQuest database.
- Back up all the VOBs and the Rational ClearQuest database.
- Unlock all the VOBs and the Rational ClearQuest database.
In all but the simplest configurations (those with a few small VOBs and a small Rational ClearQuest database), it is unlikely that this procedure could be completed in a reasonable length of time. Even if all the related databases could be backed up at the same time, it is unlikely that they would be restored together. It is far more likely that one or two databases from the set would be restored into an environment where the others were intact, which would again result in skew between the restored and intact databases. Many types of skew between databases can be reconciled by using tools and procedures described in Restoring one or more members of a set of related databases.
The following procedure illustrates a more practical backup strategy.
Procedure
Results
This strategy maximizes the chances that, on restore, the PVOB is newer than the Rational ClearQuest database and component VOBs, which in turn simplifies the reconciliation of database skew.
- Back up all members of a related group of databases in the shortest amount of time possible.
- Back up the entire group frequently. On restore, a backup performed yesterday generates far less skew than a backup performed last week.