[p4] How to take a backup

Jeff A. Bowles jab at pobox.com
Thu Oct 6 09:05:34 PDT 2005

In general, the answer to "how to backup a Perforce installation to  
another machine?" is:
     1. Make a checkpoint of the Perforce server's relational  
database. This read-locks
         the database tables so that updates are blocked until the  
checkpoint is written.
         (Implication: you can checkpoint the running server, but no  
one else will get
         anything done until the checkpoint's finished.)
     2. Then, you copy the checkpoint and ALL DIRECTORIES OF THE  
         to a backup machine.
         a.    To test the process, restore to an empty machine and  
start the server.
         b.    It's going to remind you that you need to have a  
Perforce license file for
                 the IP address of the backup machine. Include that  
"need" into your
                 backup process/mechanism - ask Perforce Tech Support  
for such a file.

Always test such checkpoint mechanisms by restoring onto a completely  
machine, and document ON HARD COPY how to restore the server and  
where to
get backup-data from off-site to do so. Review these notes about once  
a quarter.

This email doesn't give you all the exact commands and arguments to  
do the
checkpoints: the manuals and archives of this mailing list do.

Also, if you're very new to Perforce and have a development group  
depending on your
expertise, consider taking a Perforce class or bringing one on-site.  
It allows you to
get specific questions answered and also gives you a general  
framework for approaching
the tool.

     -Jeff Bowles
     Perforce Consulting Partner / Certified Trainer

ps. On the recent server releases, database "journal" is turned on.  
That's the
relational database transaction log. Keep that in mind as you read  
the docs.
(The rule is: if you want to recover back to the most recent  
transactions, that
journal will be really helpful.  Always have that journal feature  
enabled for production.)

On Oct 6, 2005, at 12:20 AM, Bhavbhuti Nathwani wrote:

> Hi Vishal
> "Kem Cho" <g>
> On Thu, 6 Oct 2005 14:15:27 +1000, "Vishal" <vishals at maxit.com.au>
> wrote:
>> I am a newbie in perforce. I want to take a backup of perforce  
>> data in 2
>> different locations at the same time. That if  user enters file  
>> into the
>> perforce server it should come in 2 different computer. Could you  
>> say me how
>> to go about it.
> Are we talking about offline backups at 2 places.  Assuming that, you
> need to copy all db*.* files and all your depot files.
>> From a relatively newbie.
> Regards
> Bhavbhuti
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user

More information about the perforce-user mailing list