This is a test version of Biostars. For the public version, visit https://www.biostars.org.
problem with downloading files

Hello everyone!
I have a problem with downloading files from ensembl.
I am trying to download some files using rsync command.
I have a text file of all the paths for all the file.
The problem is that I can't extract them.
Here is my shell script:

#!/bin/bash
while read line
do
echo $line
rsync -av $line 
done < path.txt

while path.txt is this txt file:

rsync://ftp.ensembl.org/ensembl/pub/release-89/fasta/ailuropoda_melanoleuca/cdna/Ailuropoda_melanoleuca.ailMel1.cdna.all.fa.gz ./
rsync://ftp.ensembl.org/ensembl/pub/release-89/fasta/anas_platyrhynchos/cdna/Anas_platyrhynchos.BGI_duck_1.0.cdna.all.fa.gz ./

of course there are much more paths.

I did all this according to ensemble instructions: http://www.ensembl.org/info/data/ftp/rsync.html
For one path it works quite well....
The problem is for more than one file...
Using tar or gunzip did not help.
Can someone solve this problem?
Thanks!!

rsync ensembl

Your example script works fine for me, is there an error message your are getting?

I couldn't extract the files. But I changed it, so now the text file looks like this: rsync -av ..... path. for each line. and it worked fine.

1 answer

Your ftp links should begin:

rsync://ftp.ensembl.org/pub/release-89/fasta/

Log in to answer this question.