Gbib auto updates

From Genecats
Revision as of 10:51, 25 June 2020 by Max (talk | contribs)
Jump to navigationJump to search

Jorge's Sunday update of hgdownload is run by /root/mirror-mysql-apache-gbdb. At the end, it runs the command "touch /mirrordata/gbib/lastUpdate".

By default the Gbib update script /root/updateBrowser.sh checks every few minutes if the flag file on the hgDownload server http://hgdownload.soe.ucsc.edu/gbib/lastUpdate is more recent than the date of the last update of the Gbib. This check is randomly spread over 30 seconds (crontab + /root/cronUpdate.sh).

Auto updates can be deactivated on a box with autoUpdateOff and reactivated with autoUpdateOn.

By supplying the parameter "notSelf" to updateBrowser, the box will skip this check and update without checking the flag file.

If the file on hgDownload is newer than the flagfile, it will start the update (/root/updateBrowser.sh):

  1. Update the update script itself from hgdownload.soe.ucsc.edu/gbib
  2. Update all existing /gbdb files
  3. Update all mysql files
  4. Update all hgcentral files + patch the blat server table
  5. Patch the menu to remove hgNear and add hgMirror
  6. Place the symlink to /media from htdocs/folders
  7. Run hgMirror to hide some tracks on hg19 and remove some searches from hg19

updateBrowser.sh also accepts an option: "hgwdev <hgwdevUsername> <cgiSuffix>". These pull the CGIs from hgwdev into the current gbib. "updateBrowser hgwdev" shows some more help and examples.

Note that if you have downloaded other binaries than the release ones, then the box will loose them by auto-updating to release state again on the next Sunday, when hgdownload is updated. If you do not want to have your special CGIs/htdocs overwritten, deactivate auto updates on your own gbib. Auto updates can be deactivated on a box with autoUpdateOff and reactivated with autoUpdateOn. You can also run VBoxManage guestproperty set browserbox gbibAutoUpdateOff yes more here.