I would like to use wget recursively on an ftp directory like this:
ftp://ftp.ensembl.org/pub/current_fasta/
Which contains another 2 directory levels inside, the first with the species name, and one inside with the name dna, like this:
ftp://ftp.ensembl.org/pub/current_fasta/species_name/dna/
For example, one of them has the species_name homo_sapiens:
ftp://ftp.ensembl.org/pub/current_fasta/homo_sapiens/dna/
Inside each ./dna/ directory, I would like to download only the file with the name containing the word toplevel but not the one containing the word _rm.toplevel.
Finally, I would like a wget recursive command that would download all those from these directories, each as an output file with the name species_name.fa.gz, where the species_name is the name of the parent directory, just before dna.
Any ideas?