crontab.replica.template #9

  • //
  • guest/
  • perforce_software/
  • sdp/
  • main/
  • Server/
  • Unix/
  • p4/
  • common/
  • etc/
  • cron.d/
  • crontab.replica.template
  • View
  • Commits
  • Open Download .zip Download (842 B)
MAILTO=REPL_MAILTO
MAILFROM=REPL_MAILFROM
PATH=/p4/common/bin:/p4/1/bin:/p4/2/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:
SHELL=/bin/bash

# common tasks

INSTANCE=1
# Verify
0 6 * * 6 [ -e /p4/common/bin ] && /p4/common/bin/p4verify.sh ${INSTANCE}

# Sync checkpoints from master
0 8 * * 0-5 [ -e /p4/common/bin ] && /p4/common/bin/sync_replica.sh ${INSTANCE}
# Run recreate_db_checkpoint.sh on the first Saturday afternoon in Jan. and July.
5 18 * 1,7 6 [ $(date +\%d) -le 07 ] && /p4/common/bin/recreate_db_sync_replica.sh ${INSTANCE}

# If you can't run the scripts above due to rsync issues, then run this one instead.
# 0 5 * * 0-5 [ -e /p4/common/bin ] && /p4/common/bin/replica_cleanup.sh ${INSTANCE}

# Replica Status
0 8 * * * [ -e /p4/common/bin ] && /p4/common/bin/replica_status.sh ${INSTANCE} > /dev/null

# Change User Description Committed
#12 22685 Russell C. Jackson (Rusty) Update main with current changes from dev.
#11 21338 C. Thomas Tyler Released SDP 2016.2.21328 (2016/12/16).
Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'.
#10 20767 C. Thomas Tyler Released SDP 2016.2.20755 (2016/09/29).
Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'.
#9 20050 C. Thomas Tyler Released: 2016.1.20028 (2016/08/03).
Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'.
#8 19898 C. Thomas Tyler Released SDP/MultiArch/2016.1/19888 (2016/07/07).
Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'.
#7 19694 C. Thomas Tyler Released SDP/MultiArch/2016.1/19661 (2016/06/08).
Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'.
#6 16261 Russell C. Jackson (Rusty) Removed warning from replica crontab to avoid confusion.
#5 12444 Russell C. Jackson (Rusty) Log clean up script for replicas where sync_replica.sh cannot be run.
#4 12171 Russell C. Jackson (Rusty) Merge in changes to remove the need for p4master_run.
#3 11729 Russell C. Jackson (Rusty) Added check to only create crontab files if they don't exist.
Otherwise tell the user to copy the
section and update the instance.

Also moved the times in the replica out to allow more time for the checkpoint to complete.
#2 11570 Russell C. Jackson (Rusty) Brought in changes from Mark Foundry to add -S $MAILFROM to mail commands.

 Changed sync_replica.sh and weekly_sync_replica.sh to use $LOGFILE for consistency.

 Added mail command to both files as well.
#1 10148 C. Thomas Tyler Promoted the Perforce Server Deployment Package to The Workshop.