Skip download if files exist in wget?

后端 未结 4 1852
[愿得一人]
[愿得一人] 2021-01-29 18:39

This is simplest example running wget:

wget http://www.example.com/images/misc/pic.png

but how to make wget skip download if pic.png

4条回答
  •  清歌不尽
    2021-01-29 19:21

    When running Wget with -r or -p, but without -N, -nd, or -nc, re-downloading a file will result in the new copy simply overwriting the old.

    So adding -nc will prevent this behavior, instead causing the original version to be preserved and any newer copies on the server to be ignored.

    See more info at GNU.

提交回复
热议问题