Created
November 10, 2022 17:55
-
-
Save almahmoud/ef61d68591a3016f2432c30f8fa7beac to your computer and use it in GitHub Desktop.
Download from OSN
This file contains hidden or 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
# First go to the directory where you wish to have the mirror. | |
# Eg: cd /my/mirror/path | |
# For 3.12: | |
# prep 3.12 directory and download list | |
mkdir 3.12 && curl -O https://gist.githubusercontent.com/almahmoud/9d494607650613268dd2fc4c3fc7fb04/raw/2d54eb1fb461bf59b6235f83f416e34057abcaab/312ls | |
# Copy all files from list | |
awk '{print $2}' 312ls | xargs -L 1 -i bash -c 'mkdir -p 3.12/$(dirname {}) && curl -o 3.12/{} https://mghp.osn.xsede.org/bir190004-bucket01/archive.bioconductor.org/packages/3.12/{}' | |
# For 3.14: | |
# prep 3.14 directory and download list | |
mkdir 3.14 && curl -O https://gist.githubusercontent.com/almahmoud/9d494607650613268dd2fc4c3fc7fb04/raw/2d54eb1fb461bf59b6235f83f416e34057abcaab/314ls | |
# Copy all files from list | |
awk '{print $2}' 314ls | xargs -L 1 -i bash -c 'mkdir -p 3.14/$(dirname {}) && curl -o 3.14/{} https://mghp.osn.xsede.org/bir190004-bucket01/archive.bioconductor.org/packages/3.14/{}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment