Skip to content

Instantly share code, notes, and snippets.

@sminot
Created June 6, 2022 20:26
Show Gist options
  • Save sminot/61fd2b6b8f70bbdc3b75ce6018d770cb to your computer and use it in GitHub Desktop.
Save sminot/61fd2b6b8f70bbdc3b75ce6018d770cb to your computer and use it in GitHub Desktop.
Download from NCBI RefSeq
#!/bin/bash
set -e
rsync \
-a \
-m \
--copy-links \
--recursive \
--times \
--verbose \
--exclude "all_assembly_versions/" \
--exclude "representative/" \
--exclude "*_cds_from_genomic.fna.gz" \
--exclude "*_rna_from_genomic.fna.gz" \
--include="*/" \
--include='*genomic.fna.gz' \
--exclude='*' \
rsync://ftp.ncbi.nlm.nih.gov/genomes/refseq/bacteria/ ncbi_refseq_bacteria/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment