17859fc49832ff3dc8144ea2ca5f59250050fb03 hiram Tue Oct 21 14:03:04 2025 -0700 indicate where these scripts come from in the source tree refs #35575 diff --git src/hg/utils/otto/genArk/pushRR/pullHgwdev.sh src/hg/utils/otto/genArk/pushRR/pullHgwdev.sh index 35ff0d98bb7..4b228893b39 100755 --- src/hg/utils/otto/genArk/pushRR/pullHgwdev.sh +++ src/hg/utils/otto/genArk/pushRR/pullHgwdev.sh @@ -1,25 +1,32 @@ #!/bin/bash +########################################################################## +### this script from the source tree in: +### src/hg/utils/otto/genArk/pushRR/pullHgwdev.sh +### running in the asia node in a cron job: +### 02 16 * * * ~/cronScripts/pullHgwdev.sh +########################################################################## + # exit on any error set -beEu -o pipefail export expectName="genomebrowsermirror3" export uName=$(hostname -s) if [[ "${uName}" != "${expectName}" ]]; then printf "ERROR: must run this on %s ! This is: %s\n" "${expectName}" "${uName}" 1>&2 exit 255 fi export DS=`date "+%F"` export Y=`date "+%Y"` export M=`date "+%m"` export logDir="/home/qateam/rsyncLog/${Y}/${M}" mkdir -p "${logDir}" export srcMachine="hgwdev.gi.ucsc.edu" logFile="${logDir}/rsync.GCA.${M}.${DS}.gz" time (rsync --delete --stats -a -L --itemize-changes --exclude="alpha.hub.txt" --exclude="beta.hub.txt" --exclude="public.hub.txt" --exclude="user.hub.txt" "qateam@${srcMachine}:/gbdb/genark/GCA/" "/gbdb/genark/GCA/") 2>&1 | gzip -c > "${logFile}" 2>&1 logFile="${logDir}/rsync.GCF.${M}.${DS}.gz" time (rsync --delete --stats -a -L --itemize-changes --exclude="alpha.hub.txt" --exclude="beta.hub.txt" --exclude="public.hub.txt" --exclude="user.hub.txt" "qateam@${srcMachine}:/gbdb/genark/GCF/" "/gbdb/genark/GCF/") 2>&1 | gzip -c > "${logFile}" 2>&1