2016-12-28 22 views
1

私は現在、職場でいくつかのコードを更新しようとしています。私は以前、NCBIのFTPウェブサイト(ftp://ftp.ncbi.nlm.nih.gov/)にユーザーのパス選択肢を記録するPythonの最新バージョンを含むスクリプトを作成しました。ログは私のファイルシステムを更新されたファイルで更新するのに使われました。私は基本的にホイールを作り直しました。上記のスクリプトは、NCBIのウェブサイトにアクセスして、ディレクトリのダウンロードを開始する必要がありNCBIのFTPサーバーのホームページに接続するときにrsyncが動作しないのはなぜですか?

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

...私は今のrsyncを使用したいが、私は私が欲しいものを得るように見えることはできません。その代わりに、NCBIホームディレクトリのフォルダのリストをシェルに出力し、何もコピーせずに終了します。私はすべてが正常に動作するようです(私はNCBIのFTPホームページの内部に任意のディレクトリを含め、基本的な場合)

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

を使用するたびに

**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 

[[email protected] ~/bin $] 

:ここ

は、出力は次のようになります。

ここで何をすればよいですか?問題/解決策とは何ですか?

答えて

0

rsyncは、基本的にcpのように動作します。一般的な構文は次のとおりです。

rsync source destination 

-rは再帰的に使用できます。あなたの場合は次のようになります:

PS:星印ではなく4つのスペースでフォーマットしてください。

関連する問題