Created
October 7, 2012 15:47
-
-
Save seandavi/3848717 to your computer and use it in GitHub Desktop.
Mirror ucsc database tables from server directory to local server directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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