#!/bin/bash
#*******************************************************************************
#* Name : p4d.checkpoint
#* Description : Take checkpoint of Perforce database
#*******************************************************************************
. /etc/p4d.conf
/bin/su - perforce -c ". /etc/p4d.conf; /usr/bin/p4 verify -qu //..."
/bin/su - perforce -c ". /etc/p4d.conf; /usr/bin/p4d -z -jc"
# Remove all checkpoints/journals older than 2 weeks
find $P4ROOT -maxdepth 1 \( -name checkpoint.\[0-9\]\*.gz -or \
-name journal.\[0-9\]\*.gz \) \
-a -mtime +14 |\
xargs rm -f
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #2 | 496 | Tony Smith | Set up integ path from Redhat dir to SuSE | ||
| #1 | 495 | Tony Smith | Re-ordered directory structure for the ( hopefully ) last time | ||
| //guest/tony_smith/perforce/RPM/RedHat/p4-suse/p4d.checkpoint | |||||
| #1 | 490 | Tony Smith | Branched the Redhat config into the SuSE config | ||
| //guest/tony_smith/perforce/RPM/RedHat/p4-redhat/p4d.checkpoint | |||||
| #1 | 489 | Tony Smith | Renamed the path for the sysadmin scripts etc | ||
| //guest/tony_smith/perforce/RPM/RedHat/p4-2000.1/p4d.checkpoint | |||||
| #1 | 488 | Tony Smith |
Added the files in the distribution tarball individually so the RedHat <-> SuSE differences can be tracked |
||