takahashiyu / dev

0 stars 0 forks source link

wget #5

Open takahashiyu opened 8 years ago

takahashiyu commented 8 years ago

HTTP/HTTPSでまとめてデータを取得するwgetコマンドとは? http://www.atmarkit.co.jp/ait/articles/1506/09/news006.html

takahashiyu commented 8 years ago

1回目完了

takahashiyu commented 8 years ago

ファイルアップロードツールでの利用方法を確認する。

takahashiyu commented 8 years ago

./ssh.sh ${WGET_IP} ${WGET_USER} "wget -Nrm --restrict-file-names=nocontrol http://${DOCUMENT_DIRECTORY}/document/index.html" || RET=$?

takahashiyu commented 8 years ago

-r 再帰的にファイルを入手する

takahashiyu commented 8 years ago
   -N
   --timestamping
       Turn on time-stamping.

   --no-use-server-timestamps
       Don't set the local file's timestamp by the one on the server.

       By default, when a file is downloaded, it's timestamps are set to
       match those from the remote file. This allows the use of
       --timestamping on subsequent invocations of wget. However, it is
       sometimes useful to base the local file's timestamp on when it was
       actually downloaded; for that purpose, the
       --no-use-server-timestamps option has been provided.
takahashiyu commented 8 years ago
   -m
   --mirror
       Turn on options suitable for mirroring.  This option turns on
       recursion and time-stamping, sets infinite recursion depth and
       keeps FTP directory listings.  It is currently equivalent to -r -N
       -l inf --no-remove-listing.