Skip to main content

Clearcase undelete file

Suppose user has mistakenly deleted file /org/projects/rahul/data.xml.
To get back the file in clearcase revision, do following steps:
  1. From a dynamic view, go to /org/projects/ folder.
  2. /org/projects$ cleartool desc rahul
    This will print information like,
    directory version "rahul@@/main/3"
    created 2009-12-30T04:02:42-05:00 by Rahul Singhai (singrahu@gmail.com)
    "Version created by Namespace modification subsystem
    Uncataloged file element "data.xml"."
    Element Protection:
    User : rahul    : rwx
    Group: singhai  : rwx
    Other:          : ---
    element type: directory
    predecessor version: /main/2
    
  3. Get lastest version of affected folder and type
    /org/projects$ cleartool rmver -ver /main/3 rahul
    This will remove latest version from clearcase, and folder will rollback to previous version.


Comments

Andrew said…
I wish IBM support was this coherent! Thank you for this, you saved the day!
Mike said…
Thanks for the instructions. Worked perfectly.
Anonymous said…
You saved my day..Thanks
Tim said…
Worked perfectly, thanks