Use the following procedure to restore a backup view storage directory. The view is the same one discussed in Backing Up a View.
If you are restoring a view, you must restore both the view directory tree and the view storage directory. If the view storage directory is located outside the view's directory tree, you must be sure to restore both.
NOTE: If you are restoring the view storage directory to a new location, you must re-register the view at its new location (Step #5). If you are restoring a view's directory tree to a new location, but the location of the view storage directory (outside the view directory tree) remains unchanged, you do not need to re-register the view.
Log on to the ClearCase LT server.
Check available disk space. Make sure that there is enough free space in the storage location to hold the restored copy. If necessary, create a new view storage location to hold the restored copy.
Move the original view aside. Rename or delete the view directory and the view storage directory:
C:\home\akp\views> ren akp.vws akp.vws.OLD
Load the backup. Restore the view directory and the view storage directory from the backup medium.
NOTE: For ClearCase LT servers on UNIX, each view storage directory includes a directory named .identity, which stores files with special permissions: the setUID bit is set on file uid; the setGID bit is set on file gid. You must preserve these special permissions when you restore a view backup:
If you used tar to back up the view, use the -p option when restoring the view. In addition, run the tar command as the root user. If you do not, the -p flag is ignored.
If you used cpio to back up the view, no special options are required in the cpio command that restores the backup data.
Run cleartool recoverview. Use the following command to update the view database:
%C:\> cleartool recoverview -tag akp_vu
The view is now ready for use.
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |