p4d.checkpoint #2

  • //
  • guest/
  • tony_smith/
  • perforce/
  • RPM/
  • p4-redhat/
  • p4d.checkpoint
  • View
  • Commits
  • Open Download .zip Download (615 B)
#!/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 497 Tony Smith Set up integ path from SuSE to Redhat
#1 495 Tony Smith Re-ordered directory structure for the ( hopefully ) last time
//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