#!/bin/bash -e # # euronode-dbload [-inclEsts] [-extFileUpdate] [-allowLargeDeletes] # # dbload for euronode servers. opts="$*" # other options to include otherOpts="" # initialize gbBuildServer=hgwdev.cse.ucsc.edu rsyncPort="ssh" gbBuildRoot=/hive/data/outside/genbank gbRoot=/data2/genbank cd $gbRoot # update the etc, bin, and lib directories rsync -ra $gbBuildServer:$gbBuildRoot/etc $gbBuildServer:$gbBuildRoot/bin $gbBuildServer:$gbBuildRoot/lib . . $gbRoot/lib/gbCommon.sh databases=`gbGetDatabases etc/rr.dbs` # workdir is a local dir workdir=/data2/tmp/genbank # wait for copy to hgwnfs1 copyTime=var/copy/copy.time exec $gbRoot/etc/dbload $opts $otherOpts $gbRoot "$databases" $copyTime $workdir