#author("2020-05-08T11:37:07+09:00","default:Miyashita","Miyashita")
#author("2020-05-09T00:56:03+09:00","default:Miyashita","Miyashita")
* wget コマンド メモ [#gd7966a0]
** 基本 [#j62fbfd5]
1つのファイルをDLするだけなら簡単.
#codeprettify{{
wget [URL]
}}


**ディレクトリごと [#v0ad891f]
ディレクトリ一式をDLする場合
#codeprettify{{
wget -r [URL]
}}

**親ディレクトリをダウンロードしない [#n5e0d9b9]
r オプションをつけるとディレクトリを上に遡ってDLしてしまうので,np で防ぐ.
#codeprettify{{
wget -r -np [URL]
}}

** index.html をダウンロード対象から除外 [#v69a26e4]
** index.html 等の不要なファイルをダウンロード対象から除外 [#v69a26e4]
余計な html をダウンロードしたくない時には -R で指定する
#codeprettify{{
wget -r -np -R "index.ntml*" [URL]
wget -r -np -R "index.html*" [URL]
}}

Front page   Edit Diff Attach Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes