Scenarios supported by vob_restore
When you run vob_restore, it prompts for three pieces
of information:
- The pathname of a target directory to which the VOB will be restored
- The pathname of a source directory, from which backed-up data will be copied to the target
- The (optional) pathname of a directory that holds a VOB database backed up with vob_snapshot
This information, along with the VOB tag you supply on the vob_restore command-line,
allows vob_restore to determine which of the following
scenarios to use:
- An in-place restore, which restores the backup to the VOB’s current storage
directory. This scenario has two variations:
- In the variation that uses the least disk space, both the target and source directories are the same as the VOB’s currently registered storage directory. Because you cannot copy the source data into the storage directory of a VOB that is registered and possibly still active, vob_restore unregisters the VOB, stops its server processes, and prompts you to copy the source data to the target. If you have also supplied a snapshot backup path, vob_restore verifies that the database snapshot is valid and then merges the snapshot with the data you have copied to the target.
- If you have adequate disk space available on the VOB host or on the network, consider the variation of the in-place restore in which the target and source directories are different and the source pathname specifies a temporary staging area where you have placed the backup data you want to restore. In this variation, vob_restore manages the entire process of restoring the VOB.
- A restore-and-move, which restores the backup to a different location on the local host. In this scenario, the source and target pathnames are usually the same and become the VOB storage directory after restoration is complete.
In either scenario, the following rules apply:
- The VOB to be restored must be registered and have a tag in the host’s current region.
- The target directory must be local to the host on which you are running vob_restore. It cannot be on a remote host or a NAS device.
- If the target has remote pools, you must restore them manually.