Skip to content

Instantly share code, notes, and snippets.

@seandavi
Created October 7, 2012 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seandavi/3848717 to your computer and use it in GitHub Desktop.
Save seandavi/3848717 to your computer and use it in GitHub Desktop.
Mirror ucsc database tables from server directory to local server directory
#!/bin/bash
# Mirror the normal directories
for DIR in go hg18 hg19 canFam2 mm9 mm10 hgFixed;
do
rsync -avLzP rsync://hgdownload.cse.ucsc.edu/mysql/$DIR/ /var/lib/mysql/$DIR/;
done;
# And do the soft link directories
for DIR in uniProt proteome;
do
rsync -avLzP --recursive rsync://hgdownload.cse.ucsc.edu/mysql/$DIR/ /var/lib/mysql/$DIR/;
done;
# And change the owner....
/usr/sbin/chown -R mysql:mysql /var/lib/mysql/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment