Phil for Humanity Phil for Humanity
A Guide for the Survival of Humankind and Helping the World, Society, and Yourself.



ClearCase Support: How to Backup a VOB


I was just asked how to backup a VOB, so I thought that this would be a good idea to post on the Internet. Backing up a ClearCase VOB is only a 3 step process.

First, lock the VOB so that no changes can be applied to the VOB. Users will still have read access to the VOB, but they won't be able to make any changes at all. However, users will still be able to make and modify View private files in the VOB directory, such as compiling code in a VOB. Here is the command to lock a VOB:


cleartool lock vob:VOB_TAG

This command may take a moment if there are a lot of changes in the queue. After this command completes successfully, then you can copy or backup the VOB's storage directory. I recommend tarballing and zipping the VOB's storage directory, then placing the zip file onto a blank tape or DVDs. I even recommend storing these backup tapes or DVD offsite in another secure location (building) in case of fire or theft in the server room.

Once the VOB's storage directory has been copied, then you can unlock the VOB and resume work as normally with this command:

cleartool unlock vob:VOB_TAG

That's it! You have backed up a single VOB. Don't forget to periodically backup all of your VOBs, espeically VOBs that only exist locally (not multisited) and VOBs that you own mastership of. I strongly recommend automating these procedures for all of your VOBs.

by Phil for Humanity
on 20081120

Related Articles
 » ClearCase Support: How to Duplicate a VOB
 » ClearCase Support: How to Synchronize 2 VOBs
 » ClearCase Support: How to Mount and Unmount a VOB