2

我目前正在尝试更新一些工作中的代码。我之前使用最新版本的 Python 创建了一个脚本,该脚本在 NCBI 的 FTP 网站 ( ftp://ftp.ncbi.nlm.nih.gov/ ) 上记录用户路径选择。该日志用于使用更新的文件更新我的文件系统(我相信 NCBI 每周更新他们的文件)。我基本上重新创建了轮子。我现在想使用 rsync,但我似乎无法得到我想要的东西......

rsync -vah --include "\*/" --exclude "\*" rsync://ftp.ncbi.nlm.nih.gov/

上面的脚本应该转到 NCBI 的网站并开始下载目录。相反,它会向 shell 打印 NCBI 主目录中的文件夹列表,然后终止而不复制任何内容。

这是输出的样子:

**Warning Notice!**

**You are accessing a U.S. Government information system which includes this
computer, network, and all attached devices. This system is for
Government-authorized use only. Unauthorized use of this system may result in
disciplinary action and civil and criminal penalties. System users have no
expectation of privacy regarding any communications or data processed by this
system. At any time, the government may monitor, record, or seize any
communication or data transiting or stored on this information system.**

**-------------------------------------------------------------------------------**

**Welcome to the NCBI rsync server.**

 - 1000genomes
 - bigwig
 - bioproject
 - biosample
 - blast
 - cgap
 - cn3d
 - dbgap
 - entrez
 - epigenomics
 - fa2htgs
 - genbank
 - gene
 - genomes
 - hapmap
 - mmdb
 - ncbi-asn1
 - pathogen
 - pubchem
 - pubmed
 - pub
 - refseq
 - repository
 - SampleData
 - sequin
 - sky-cgh
 - snp
 - sra
 - tech-reports
 - toolbox
 - tpa
 - tracedb
 - variation 

[user@host ~/bin $]

每当我使用

rsync://ftp.ncbi.nlm.nih.gov/destination

(基本上,如果我在 NCBI 的 FTP 主页中包含任何目录)一切似乎都正常。

我应该在这里做什么?什么是问题/解决方案?

4

0 回答 0