{"id":5125,"date":"2019-10-23T10:07:20","date_gmt":"2019-10-23T02:07:20","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5125"},"modified":"2019-10-23T23:29:22","modified_gmt":"2019-10-23T15:29:22","slug":"lftpget","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lftpget","title":{"rendered":"lftpget\u547d\u4ee4 – \u4e0b\u8f7d\u6307\u5b9a\u7684\u6587\u4ef6"},"content":{"rendered":"\n

lftp\u662flinux\u4e2d\u4e00\u6b3eftp\u670d\u52a1\u5668\uff0c\u76f8\u6bd4windows\u4e2d\u7684ftp\u663e\u5f97\u8981\u590d\u6742\u4e0d\u5c11\u4e86\uff0c\u4e0b\u9762\u6211\u6765\u603b\u7ed3\u4e00\u4e0blftp\u6587\u4ef6\u4e0a\u4f20\uff0c\u6587\u4ef6\u4e0b\u8f7d\uff0c\u53ca\u6587\u4ef6\u67e5\u627e\u7b49\u7b49\u76f8\u5173\u547d\u4ee4\u5427\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> lftpget [\u53c2\u6570] [\u6587\u4ef6]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-c<\/td>\u7ee7\u7eed\u5148\u524d\u7684\u4e0b\u8f7d <\/td><\/tr>
-d<\/td>\u8f93\u51fa\u8c03\u8bd5\u4fe1\u606f <\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

lftp\u4e0a\u4f20\u5355\u4e2a\u6587\u4ef6\u547d\u4ee4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lftp webmaster@linuxprobe.com:\/> put test.txt<\/pre>\n\n\n\n

lftp\u4e0a\u4f20\u591a\u4e2a\u6587\u4ef6\u547d\u4ee4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lftp webmaster@linuxprobe.com:\/> mput *.txt<\/pre>\n\n\n\n

\u9009\u62e9\u67d0\u4e2a\u76ee\u5f55\u4e0b\u67d0\u79cd\u6269\u5c55\u540d\u7684\u4e0b\u8f7d\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lftp webmaster@linuxprobe.com:\/usr\/local> mget *.php<\/pre>\n\n\n\n

\u65ad\u70b9\u7eed\u4f20\u529f\u80fd\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lftp webmaster@linuxprobe.com:\/> mget -c .\/usr\/local \/*.*<\/em><\/pre>\n\n\n\n

\u4e0b\u8f7d\u6574\u4e2a\u76ee\u5f55\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lftp webmaster@linuxprobe.com:\/> mirror  \/usr\/local \/<\/pre>\n","protected":false},"excerpt":{"rendered":"

lftp\u662flinux\u4e2d\u4e00\u6b3eftp\u670d\u52a1\u5668\uff0c\u76f8\u6bd4windows\u4e2d\u7684ftp\u663e\u5f97\u8981\u590d\u6742\u4e0d\u5c11\u4e86\uff0c\u4e0b\u9762\u6211\u6765\u603b\u7ed3\u4e00\u4e0blftp […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5125"}],"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=5125"}],"version-history":[{"count":7,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5125\/revisions"}],"predecessor-version":[{"id":5272,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5125\/revisions\/5272"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}