top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

Clearcase: How do I restore a view-private file from backup?

0 votes
438 views
Clearcase: How do I restore a view-private file from backup?
posted Sep 8, 2014 by Amit Kumar Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

We need to follow below steps for different view in Clear Case:

For DYNAMIC VIEW:
Note: The view storage directory (*.vws) needs to be backed up for dynamic views as this is where the file(s) will be recovered from.
To recover a view private file for a dynamic view, use the mvfsstorage command to find the path of the view private file (as it is not intuitive to locate) and replace the file with the back up copy:
Review the ClearCase Command Reference Guide on the topic of mvfsstorage (cleartool man mvfsstorage) for more information.

  1. Open a command prompt, set into the view and cd into the VOB where the view private file resides.
  2. Run mvfsstorage

Example:

M:\test_view\my_test_vob>cleartool ls
test_project@@\main\1 Rule: \main\LATEST
test.txt

M:\test_view\my_test_vob>mvfsstorage test.txt
E:\ClearCase_Storage\views\user1\test_view.vws\.s\00010\80000019422db43btest.txt

Note: The mvfsstorage command resides in the /etc directory on UNIX and Linux and must be run from that path,

  1. Navigate to the location of the file within the view storage directory of the backup and copy the file with the same name.
  2. Navigate to the location of the file within the view storage directory of the active dynamic view and delete the corrupted file(s).
  3. Replace the new file from the backup into that directory with the same name from the mvfsstorage output.

For SNAPSHOT VIEW:
1. Note: The view root (location where the files are loaded) needs to be backed up for snapshot views as this is where the file(s) will be recovered from.
2. To recover a view private file for a snapshot view, find the copy of the view private file in the backup archive and replace the file in the active view with the copy (just like any normal operating system file restore.

answer Sep 9, 2014 by Kali Mishra
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...