Browser Mirrors: Difference between revisions

From genomewiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 22: Line 22:


<blockquote>
<blockquote>
<code>
#!/bin/bash -e
#!/bin/bash -e


# do downloads and updates
# do downloads and updates
# for use with cron
# for use with cron


echo "#####################################"
echo "#####################################"
/usr/data/mirror-download/doDownloads.sh
/usr/data/mirror-download/doDownloads.sh


echo "#####################################"
echo "#####################################"
/usr/data/mirror-download/doUpdateDb.sh
/usr/data/mirror-download/doUpdateDb.sh


echo "#####################################"
echo "#####################################"
echo "Successfully updated mirror."
echo "Successfully updated mirror."
</code>
</blockquote>
</blockquote>

Revision as of 15:10, 10 August 2006

This page contains information for users interested in mirroring the UCSC Genome Browser on their own servers. See also http://genome.ucsc.edu/mirror.html

Partial Mirrors

A complete mirror of all assemblies requires a large amount of disk space (currently on the order of a terabyte). However, it is not too difficult to set things up so that only a portion of assemblies are mirrored. The following scripts and auxiliary files are used for this purpose at Cornell (http://genome-mirror.bscb.cornell.edu).

These programs are run nightly via cron, using the following crontab entry:

0 0 * * * /usr/data/mirror-download/doAll.sh

where doAll.sh is a simple wrapper for doDownloads.sh and doUpdateDb.sh, viz.

#!/bin/bash -e

# do downloads and updates # for use with cron

echo "#####################################" /usr/data/mirror-download/doDownloads.sh

echo "#####################################" /usr/data/mirror-download/doUpdateDb.sh

echo "#####################################" echo "Successfully updated mirror."