[p4] Backup scripts?

Arnt Gulbrandsen arnt at gulbrandsen.priv.no
Mon Sep 25 01:47:02 PDT 2006


R. Tyler Ballance writes:
> I was wondering if anybody had any good ruby/python/perl scripts for 
> creating and tarballing backups of my entire perforce repository (all 
> three depots), once those tarballs exist, I am capable enough to 
> write the scripts to rsync those to a remote server, but doing 
> nightly backups of the perforce repository (given its database and 
> metadata-centric approach to storing data) still eludes me :)

You don't need a script, just run tar on the entire perforce directory. 
The files you need to back up are db.*, license and all the 
subdirectories (one per depot).

Since you're so small, you probably don't even need to stop the p4d 
while you're making the copy. Just do it at night while noone submits.

Arnt


More information about the perforce-user mailing list