现在的位置: 首页 > 综合 > 正文

Backup the blog through wget

2013年04月26日 ⁄ 综合 ⁄ 共 612字 ⁄ 字号 评论关闭

I need backup my blog that hosting on chinaunix. opening every page and saving as local file are boring, so I get the copy through Unix tools called wget.

For more information about wget, please click: wget的详解

 

First, export environment variable:

    export ftp_proxy=proxy_ip:proxy:port

And then create the file containing downloading url line by line:

    http://blog.chinaunix.net/u/11680/article_0_1.html
    http://blog.chinaunix.net/u/11680/article_0_2.html
    http://blog.chinaunix.net/u/11680/article_0_3.html
    http://blog.chinaunix.net/u/11680/article_0_4.html

Last, execute the command as:

    wget -m -c -k -L -p --proxy-user=username --proxy-passwd=password -i import_url.txt

 

抱歉!评论已关闭.