{"id":4320,"date":"2019-07-27T00:20:56","date_gmt":"2019-07-26T16:20:56","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4320"},"modified":"2019-07-28T01:44:04","modified_gmt":"2019-07-27T17:44:04","slug":"lftp","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lftp","title":{"rendered":"lftp\u547d\u4ee4 – \u4f18\u79c0\u7684\u547d\u4ee4\u884cFTP\u5ba2\u6237\u7aef"},"content":{"rendered":"\n
lftp\u652f\u6301FTP\u3001SETP\u3001HTTP\u548cFTPs\u7b49\u591a\u79cd\u6587\u4ef6\u4f20\u8f93\u534f\u8bae\u3002 \u8fd8\u652f\u6301FXP\uff0c\u5141\u8bb8\u6570\u636e\u7ed5\u8fc7\u5ba2\u6237\u7aef\u76f4\u63a5\u5728\u4e24\u4e2aFTP\u670d\u52a1\u5668\u4e4b\u95f4\u4f20\u8f93\u3002\u540c\u65f6\u8fd8\u6709\u9012\u5f52\u955c\u50cf\u6574\u4e2a\u76ee\u5f55\u6811\u4ee5\u53ca\u65ad\u70b9\u7eed\u4f20\u4e0b\u8f7d\u7684\u529f\u80fd\uff0c lftp\u7684\u4f20\u8f93\u4efb\u52a1\u53ef\u4ee5\u5b89\u6392\u65f6\u95f4\u6bb5\u8ba1\u5212\u6267\u884c\uff0c\u53ef\u4ee5\u9650\u5236\u5e26\u5bbd\u548c\u521b\u5efa\u4f20\u8f93\u5217\u8868\uff0c\u652f\u6301\u7c7b\u4f3cUnix shell\u7684\u4efb\u52a1\u63a7\u5236\u3002\u5ba2\u6237\u7aef\u8fd8\u53ef\u4ee5\u5728\u4ea4\u4e92\u5f0f\u6216\u81ea\u52a8\u811a\u672c\u91cc\u4f7f\u7528\u3002 <\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lftp [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u767b\u9646\u540e\u53ea\u7528”ls”\u3001”cd”\u7b49\u547d\u4ee4\u67e5\u770b\u6587\u4ef6\u548c\u6539\u53d8\u76ee\u5f55\uff1a<\/p>\n\n\n\n \u4f7f\u7528”get”\u3001”mget”\u3001”mirror”\u3001”pget”\u4e0d\u540c\u7684\u6307\u4ee4\u529f\u80fd\u4e0b\u8f7d\u6587\u4ef6\uff1a<\/p>\n\n\n\n “put”\u3001”mput”\u90fd\u662f\u5bf9\u6587\u4ef6\u4e0a\u4f20\u7684\u64cd\u4f5c\uff0c”mirror -R” \u5c06\u672c\u5730\u76ee\u5f55\u4ee5\u8fed\u4ee3\uff08\u5305\u62ec\u5b50\u76ee\u5f55\uff09\u7684\u65b9\u5f0f\u53cd\u5411\u4e0a\u4f20\u5230ftp\u7ad9\u70b9\uff1a<\/p>\n\n\n\n lftp\u652f\u6301FTP\u3001SETP\u3001HTTP\u548cFTPs\u7b49\u591a\u79cd\u6587\u4ef6\u4f20\u8f93\u534f\u8bae\u3002 \u8fd8\u652f\u6301FXP\uff0c\u5141\u8bb8\u6570\u636e\u7ed5\u8fc7\u5ba2\u6237\u7aef\u76f4\u63a5\u5728\u4e24 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4320"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4320"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4320\/revisions"}],"predecessor-version":[{"id":4453,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4320\/revisions\/4453"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-f<\/td> \u6307\u5b9alftp\u8981\u6267\u884c\u7684\u811a\u672c\u6587\u4ef6<\/td><\/tr> -c<\/td> \u6267\u884c\u6307\u5b9a\u7684\u547d\u4ee4\u540e\u9000\u51fa<\/td><\/tr> --help<\/td> \u663e\u793a\u5e2e\u52a9\u4fe1\u606f<\/td><\/tr> --version<\/td> \u663e\u793a\u5f53\u524d\u7248\u672c\u53f7<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# lftp \u7528\u6237\u540d:\u5bc6\u7801@ftp\u5730\u5740:\u4f20\u9001\u7aef\u53e3\uff08\u9ed8\u8ba421\uff09 <\/pre>\n\n\n\n
> mget -c *.db # \u628a\u6240\u6709\u7684db\u6587\u4ef6\u4ee5\u5141\u8bb8\u65ad\u70b9\u7eed\u4f20\u7684\u65b9\u5f0f\u4e0b\u8f7d\u3002 \n> mirror aaa\/ # \u5c06aaa\u76ee\u5f55\u6574\u4e2a\u7684\u4e0b\u8f7d\u4e0b\u6765\uff0c\u5b50\u76ee\u5f55\u4e5f\u4f1a\u81ea\u52a8\u590d\u5236 \n> pget -c -n 10 10G.file \u4ee5\u6700\u591a10\u4e2a\u7ebf\u7a0b\u4ee5\u5141\u8bb8\u65ad\u70b9\u7eed\u4f20\u7684\u65b9\u5f0f\u4e0b\u8f7d10G.file<\/pre>\n\n\n\n
> put linuxcool.tar\n> mirror -R \u672c\u5730\u76ee\u5f55\u540d <\/pre>\n","protected":false},"excerpt":{"rendered":"