[p4] Backup scripts?

Arnt Gulbrandsen arnt at gulbrandsen.priv.no
Mon Sep 25 06:21:00 PDT 2006


I should have known this would happen.

My preferences are:

1. If the server's OS/architecture may change between backup and 
restore, use p4 checkpoints.

2. Else, if the site is so small that one can trust the server to be 
idle at night, just rsync and be done. (I draw the limit at, ah, 1.5 
developers, or 2.5 if it's acceptable that a backup fails once per 
year.) This would seem to apply to the original poster.

3. Else, if it's bigger and the p4d runs on a real OS, mount the 
relevant file system somewhere as a snapshot and back up the snapshot.

4. If all else fails, use p4 checkpoints.

So why don't I like p4 checkpoints? I've never thought about it very 
much. I think the basic reason is that IMO it's wrong for userspace 
code like p4d to take care of this. It's a perfectly ordinary backup. 
Not something each application should have to handle. I also don't like 
backing up something other than what's used.

Arnt
(whose p4ds run on a real OS)


More information about the perforce-user mailing list