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 5 * * 0-5 [ -e /p4/common/bin ] && /p4/common/bin/sync_replica.sh ${INSTANCE} # Don't run the line below on replicas that are being used as it resets the replica once per week. 0 5 * * 6 [ -e /p4/common/bin ] && /p4/common/bin/weekly_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 * * 0-6 [ -e /p4/common/bin ] && /p4/common/bin/replica_status.sh ${INSTANCE} > /dev/null
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#11 | 22622 | C. Thomas Tyler |
Renamed crontab templates files to be template.* rather than *.template. This is an 'optimize for lazy' tweak, since if we use a prefix, then the actual crontab files named of the form crontab.$USER.${HOSTNAME%%.*} won't have command line completion conficts with the templates. Added a ReadMe.md file describing the suggested (and with HMS required) naming convention for crontab files. Added a command summary doc for the sdp_sync.sh script that manages crontab files in a tight ship deployment. The reference to this file from the ReadMe.md file won't work now with this change in the dev branch, but will work once promoted to main. |
||
#10 | 21327 | Russell C. Jackson (Rusty) | Update to have mkdirs put the correct instance name into the crontab files. | ||
#9 | 20732 | Russell C. Jackson (Rusty) | Corrected to run sync_replica.sh every day. | ||
#8 | 19958 | Russell C. Jackson (Rusty) | Correcting crontab again... | ||
#7 | 19876 | Russell C. Jackson (Rusty) |
Corrected crontab to only run on 1st Sat of Jan. and July. |
||
#6 | 19466 | Russell C. Jackson (Rusty) |
Renamed weekly_sync_replica.sh to recreate_db_sync_replica to be consistent with early rename of weekly_checkpoint.sh. Changed crontab.replica to only run recreate_db_sync_replica when the master runs recreate_db_checkpoint.sh Use the switch_db files function in the sync_replica script and added additional logging and error checking. #review Sorry Tom, I was wrong about being done. I just found this stuff while reviewing my prior changes to recreate_db_checkpoint.sh and backup_functions.sh |
||
#5 | 16335 | C. Thomas Tyler |
Routine Merge Down to dev from main using: p4 merge -b perforce_software-sdp-dev |
||
#4 | 12923 | C. Thomas Tyler |
Routine merge down from main to dev. Resolved with 'p4 resolve -as', no merges or conflicts. |
||
#3 | 12169 | Russell C. Jackson (Rusty) |
Updated copyright date to 2015 Updated shell scripts to require an instance parameter to eliminate the need for calling p4master_run. Python and Perl still need it since you have to set the environment for them to run in. Incorporated comments from reviewers. Left the . instead of source as that seems more common in the field and has the same functionality. |
||
#2 | 12028 | C. Thomas Tyler | Refreshed SDP dev branch, merging down from main. | ||
#1 | 10638 | C. Thomas Tyler | Populate perforce_software-sdp-dev. | ||
//guest/perforce_software/sdp/main/Server/Unix/p4/common/etc/cron.d/crontab.replica.template | |||||
#1 | 10148 | C. Thomas Tyler | Promoted the Perforce Server Deployment Package to The Workshop. |