Subscribe

  • Subscribe via XML
  • Subscribe via Bloglines
  • Subscribe via NewsGator
  • Subscribe via MyYahoo
  • Subscribe via Google
  • Subscribe via MyMSN
  • Add this blog to my Technorati Favorites!

Perforce Recovery

Tuesday, July 24th, 2007

I was getting this error when attempting to restore a checkpointed and journaled backup of Perforce:

[perforce@source restore]$ p4d -r /data/p4root -jr checkpoint.659 journal
Perforce db files in '/data/p4root' will be created if missing...
Recovering from checkpoint.659...
Perforce server error:
        open for read: checkpoint.659: No such file or directory
[perforce@source restore]$ ls -lah
total 5.8G
drwxrw-rw-  2 perforce perforce 4.0K Jul 24 14:28 .
drwx------  5 perforce perforce 4.0K Jul 24 14:11 ..
-r--r--r--  1 perforce perforce 5.8G Jul 24 14:16 checkpoint.659
-rw-rw-rw-  1 perforce perforce 4.1K Jul 24 14:28 journal

As it turns out, the -jr flag expects absolute paths for the names of these files. Once I made this switch, everything worked fine.