wgetを使用してディレクトリとサブディレクトリをダウンロードする
Webにフォルダービューのあるフォルダーがあります(http://example.com/folder1/folder2/) / folder2には、pdfファイルが含まれる複数のフォルダーがあります。wgetを使用して、すべてのサブフォルダーとファイルを含む/ folder2のすべてのコンテンツをssh経由でサーバーにダウンロードしたい。次のことを試しましたが、index.htmlとrobots.txtファイルのみを取得し続けています。 [root@myserver downloads]# wget -r --no-parent --reject "index.html*" http://www.example.com/folder1/folder2/ --2015-08-07 07:46:36-- http://www.example.com/folder1/folder2/ Resolving www.example.com... 192.168.1.1 Connecting to www.example.com|192.168.1.1|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: `www.example.com/folder1/folder2/index.html' [ <=> ] 4,874,325 138K/s in 37s 2015-08-07 07:47:42 (128 KB/s) - `www.example.com/folder1/folder2/index.html' saved [4874325] …