【问题标题】:Copying only the changed files while mirroring a website镜像网站时仅复制更改的文件
【发布时间】:2012-11-27 18:54:09
【问题描述】:

我正在使用 wget 使用此代码镜像网站

$ wget \
     --recursive \
     --no-clobber \
     --page-requisites \
     --html-extension \
     --convert-links \
     --restrict-file-names=windows \
     --domains website.org \
     --no-parent \
         www.website.org/tutorials/html/

下次我运行它时,它会再次开始下载相同的文件,但是我希望下次只下载更改的文件。除了使用 wget,我愿意使用任何其他工具或脚本(最好是 PHP、Curl)。

【问题讨论】:

    标签: php javascript web-applications curl wget


    【解决方案1】:

    这是为 rsync 量身定做的工作。见man rsync

    你可以使用:

    rsync -avz <source> <destination>
    

    【讨论】:

      【解决方案2】:

      尝试使用选项--timestamping 进行增量下载。另请参阅wget manual 了解更多信息。

      【讨论】:

        猜你喜欢
        • 2010-09-25
        • 2011-01-24
        • 2011-09-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-08-13
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多