[p4] backups

Daniel Beukers daniel at guerrilla-games.com
Wed Jan 23 03:27:38 PST 2008


Hi Duncan,

I Just happened to have typed a doc about our backup process yesterday:

Apart from backing stuff up,  it is useful for daily housekeeping tasks.
One has to make sure that the data that's being backed up is useful and
consistent anyway.

The output of the script is saved to a backup.log in the server directory, which
is also backed up. After the backup, the log is e-mailed with 'P4 diff/full
backup SUCCEEDED/FAILED' in the subject. This mail is checked every morning.


Our script does the following:

.	Log the time
.	Log the server version
	o	 A checkpoint may need the same server version to work
.	Log the diskspace 
	o	should really be monitored pro-actively
	o	for monitoring growth
.	Truncate the log
	o	Keep it practical, not too big.
.	Stop the service (Restart the service for stability reasons)
.	Check the consistency of the database (metadata validation)
	o	This is 'p4d -xv'
.	Log the time
	o	If the validation durations has increased noticeably, it's an 
		indication for db fragmentation. You should rebuild the db from 
		checkpoint
.	Check the depot
	o	This is 'p4 admin verify'
	o	At Guerrilla this takes to long to run it daily (20hrs)
	o	If  you can, run this every day, otherwise whenever you can
.	Log the time
.	Make a Checkpoint
.	Log the time
.	Start the service
	o	Users can connect again
.	Move the Checkpoint and Journal files somewhere else
.	Data transfer is started
.	Log the time
.	Mail a backup report

Do not back the following files, it might even crash the perforce service:
-	db.* (all metadata resides in the checkpoint, which is backed up of 
	course)
-	journal (is truncated prior to backup)
-	log (changes during backup, truncated prior to backup anyway )


Cheers,
Daniel.

--
Daniel Beukers | IT Manager
SCEE\Guerrilla BV


-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of
duncan.bowring at realtimeworlds.com
Sent: woensdag 23 januari 2008 1:14
To: perforce-user at perforce.com
Subject: [p4] backups

Hey everyone,

What do you folks do for backing up your p4 repository.. mainly curious
to see what other people do out there.

Hope to see some of you in London. ;)

 

Cheers

 


____________________________________________________________________
DISCLAIMER

This message and any attachments contain privileged and confidential information
intended for the use of the addressee named above. If you are not the intended
recipient of this message, you are hereby notified that any use, dissemination,
distribution or reproduction of this message is prohibited. Please note that we
cannot guarantee that this message or any attachment is virus free or that it
has not been intercepted and amended. The views of the author may not
necessarily reflect those of Realtime Worlds Ltd.

 

Realtime Worlds Ltd is registered in Scotland, number 225628. Registered Office:
152 West Marketgait, Dundee, DD1 1NJ.
_______________________________________________
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