{"id":156,"date":"2014-12-17T08:46:55","date_gmt":"2014-12-17T00:46:55","guid":{"rendered":"http:\/\/owemeawe.com\/?p=156"},"modified":"2014-12-17T08:46:55","modified_gmt":"2014-12-17T00:46:55","slug":"lftp%e8%af%a6%e8%a7%a3%e5%8f%8a%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/peloo.net\/?p=156","title":{"rendered":"lftp\u8be6\u89e3\u53ca\u5e94\u7528"},"content":{"rendered":"<div id=\"sina_keyword_ad_area2\" class=\"articalContent   \">\n<div>\n<p style=\"line-height: 15.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: \u6977\u4f53;background-color: #f7f5e9\"> \u7528<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';background-color: #f7f5e9\">ftp<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53;background-color: #f7f5e9\">\u7684<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';background-color: #f7f5e9\">get<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53;background-color: #f7f5e9\">\u547d\u4ee4\u65e0\u6cd5\u4e0b\u8f7d\u6587\u4ef6\u5939\uff0c\u8fd9\u4e2a\u65f6\u5019\u53ef\u4ee5\u7528<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';background-color: #f7f5e9\">lftp<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53;background-color: #f7f5e9\">\u7684<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';background-color: #f7f5e9\">mirror<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53;background-color: #f7f5e9\">\u547d\u4ee4\uff1a<\/span><\/p>\n<p style=\"line-height: 15.75pt\" align=\"left\"><span style=\"font-family: 'Courier new'\">\u00a0<\/span><\/p>\n<p style=\"text-indent: 19.5pt;line-height: 15.75pt\" align=\"left\"><b><span style=\"font-size: 15pt;font-family: \u6977\u4f53;color: #22b14c\"> \u57fa\u672c\u7528\u6cd5<\/span><\/b><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 18.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">1<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u3001<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">yum -y install lftp \/\/<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u5b89\u88c5<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">lftp<\/span><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 18.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">2<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u3001<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">lftp 192.168.1.124 \/\/<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #00b7ef\">(<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #00b7ef\">\u6216\u76f4\u63a5\u8f93\u5165<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #00b7ef\">ftp<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #00b7ef\">\u7684\u7f51\u5740<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #00b7ef\">)<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u767b\u5f55\u8fdc\u7a0b<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">ftp<\/span><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 18.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">3<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u3001<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">user root \/\/<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u8f93\u5165<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">ftp<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u7528\u6237\u540d<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">root\u00a0<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #00b7ef\">(<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #00b7ef\">\u533f\u540d<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #00b7ef\">ftp<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #00b7ef\">\u4e0d\u7528\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #00b7ef\">)<\/span><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 18.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">4<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u3001<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">111111 \/\/<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u8f93\u5165<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">ftp<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u5bc6\u7801\uff08\u4e0d\u56de\u663e\uff09<\/span><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 18.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">5<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u3001<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">mirror jsweb \/opt\/www \u00a0\/\/<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u5c06<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">ftp<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u4e0a\u7684<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">jsweb(<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u6587\u4ef6\u5939\u540d\u79f0<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">)<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u4e0b\u8f7d\u5230\u672c\u5730\u7684<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">\/opt\/www<\/span><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 18.75pt\" align=\"left\"><span style=\"font-family: 'Courier new'\">\u00a0<\/span><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 18.75pt\" align=\"left\"><b><span style=\"font-size: 15pt;font-family: 'Courier new';color: #22b14c\">lftp mirror<\/span><\/b><b><span style=\"font-size: 15pt;font-family: \u6977\u4f53;color: #22b14c\">\u7684\u9ad8\u7ea7\u5e94\u7528\u4e3e\u4f8b<\/span><\/b><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 15.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">mirror<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #ff7e00\"> \u2013<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">delete<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #ff7e00\"> \u2013<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">only-newer<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #ff7e00\"> \u2013<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">verbose work \/opt\/bak\/<\/span><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 15.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u81ea\u52a8\u5907\u4efd\u670d\u52a1\u5668<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">work<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u6587\u4ef6\u5939\uff0c\u5230\u672c\u5730<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">opt\/bak<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u6587\u4ef6\u5939\u4e0b\uff0c\u5e76\u4e14\u5220\u9664\u5df2\u7ecf\u4e0d\u5b58\u5728\u7684\u6587\u4ef6\uff0c\u5e76\u4e14\u53ea\u4e0b\u8f7d\u6700\u65b0\u7684\u6587\u4ef6\uff0c\u518d\u7ed9\u51fa\u8be6\u7ec6\u7684\u8f93\u51fa\u3002<\/span><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 15.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u7528<\/span> <span style=\"font-size: 12pt;font-family: 'Courier new'\">lftp<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u7684<\/span> <span style=\"font-size: 12pt;font-family: 'Courier new'\">-e<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u9009\u9879\uff0c\u628a\u547d\u4ee4\u76f4\u63a5\u63a5\u5728<\/span> <span style=\"font-size: 12pt;font-family: 'Courier new'\">lftp<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u4e4b\u540e\uff1a<\/span><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 15.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">lftp -u username,password -e<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #ff7e00\">\u201d<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">mirror<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #ff7e00\"> \u2013<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">delete<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #ff7e00\"> \u2013<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">only-newer<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #ff7e00\"> \u2013<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">verbose \/work bak\/<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #ff7e00\">\u201d<\/span> <span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">ftpIP<\/span><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 15.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u4e5f\u53ef\u4ee5\u7528<\/span> <span style=\"font-size: 12pt;font-family: 'Courier new'\">at<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u9009\u9879\u6307\u5b9a\u5907\u4efd\u7684\u65f6\u95f4\uff1a<\/span><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 15.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">lftp at 01:00 -u username,password -e<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #ff7e00\">\u201d<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">mirror<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #ff7e00\"> \u2013<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">delete<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #ff7e00\"> \u2013<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">only-newer<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #ff7e00\"> \u2013<\/span><span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">verbose \/work bak\/<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53;color: #ff7e00\">\u201d<\/span> <span style=\"font-size: 12pt;font-family: 'Courier new';color: #ff7e00\">ftpIP<\/span><\/p>\n<p style=\"margin: 12pt 0cm;text-indent: 24pt;line-height: 15.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u8fd9\u6837\u6bcf\u5929<\/span> <span style=\"font-size: 12pt;font-family: 'Courier new'\">1<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u70b9\u5c31\u4f1a\u6267\u884c\u5907\u4efd\u4efb\u52a1\u3002<\/span><\/p>\n<p style=\"line-height: 15.75pt\" align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new';background-color: #f7f5e9\">###########################################################<\/span><\/p>\n<p style=\"line-height: 15.75pt\" align=\"left\"><span style=\"font-family: 'Courier new'\">\u00a0<\/span><\/p>\n<p style=\"line-height: 15.75pt\" align=\"left\"><b><span style=\"font-size: 15pt;font-family: 'Courier new';color: #22b14c;background: none repeat scroll 0% 0% #f7f5e9\">\u00a0 lftp<\/span><\/b><b><span style=\"font-size: 15pt;font-family: \u6977\u4f53;color: #22b14c;background: none repeat scroll 0% 0% #f7f5e9\">\u4e2d<\/span><\/b><b><span style=\"font-size: 15pt;font-family: 'Courier new';color: #22b14c;background: none repeat scroll 0% 0% #f7f5e9\">mirror<\/span><\/b><b><span style=\"font-size: 15pt;font-family: \u6977\u4f53;color: #22b14c;background: none repeat scroll 0% 0% #f7f5e9\">\u8fd9\u4e2a\u547d\u4ee4\u7684\u5176\u4ed6\u53c2\u6570<\/span><\/b><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0-c, --continue \u00a0 \u00a0 \u00a0 \u00a0<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u652f\u6301\u65ad\u70b9\u7eed\u4f20<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">if possible<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0-e, --delete \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u5982\u679c\u8fdc\u7a0b\u76ee\u5f55\u4e0b\u5df2\u7ecf\u6ca1\u6709\u67d0\u4e2a\u6587\u4ef6\uff0c\u800c\u672c\u5730\u6709\uff0c\u5219\u5220\u9664\u8fd9\u4e2a\u6587\u4ef6\u3002<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0 \u00a0 \u00a0--delete-first \u00a0 \u00a0\u00a0<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u5728\u4e0b\u8f7d\u65b0\u6587\u4ef6\u4e4b\u524d\u5148\u5220\u9664\u65e7\u7684\u6587\u4ef6<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0-s, --allow-suid \u00a0 \u00a0 \u00a0\u00a0<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u4fdd\u7559\u8fdc\u7a0b\u76ee\u5f55\u4e2d\u8bbe\u5b9a\u7684\u7528\u6237\u53ca\u7ec4\u6743\u9650<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0 \u00a0 \u00a0--allow-chown \u00a0 \u00a0 \u00a0<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u8bbe\u7f6e\u4e0b\u8f7d\u6587\u4ef6\u7684\u6240\u6709\u8005\u548c\u6240\u5c5e\u7ec4<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0 \u00a0 \u00a0--ignore-time \u00a0 \u00a0 \u00a0<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u5c4f\u853d\u65f6\u95f4\u5224\u5b9a\uff0c\u8fd9\u6837<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">mirror<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u53ea\u901a\u8fc7\u5927\u5c0f\u6765\u5224\u65ad\u6587\u4ef6\uff0c\u540c\u6b65\u901f\u5ea6\u53ef\u4ee5\u52a0\u5feb\u3002<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0-n, --only-newer \u00a0 \u00a0 \u00a0<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u53ea\u4e0b\u8f7d\u65b0\u7684\u6587\u4ef6\uff0c<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">mirror<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u7684\u5224\u5b9a\u65b0\u6587\u4ef6\u662f\u901a\u8fc7\u6587\u4ef6\u5927\u5c0f\u548c\u4fee\u6539\u65f6\u95f4\u6765\u5224\u5b9a\u7684<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">(<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u8fd9\u65f6\u5019<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">-c<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u4e0d\u80fd\u4f7f\u7528<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">)<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0-r, --no-recursion \u00a0 \u00a0\u00a0<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u4e0d\u4e0b\u8f7d\u5b50\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\uff0c\u5373\u6ca1\u6709\u9012\u5f52\u7684\u529f\u80fd<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0-p, --no-perms \u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u4e0d\u8bbe\u7f6e\u4e0b\u8f7d\u540e\u6587\u4ef6\u7684\u8bbf\u95ee\u6743\u9650<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0 \u00a0 \u00a0--no-umask \u00a0 \u00a0 \u00a0 \u00a0 don't apply umask to file modes\u00a0#<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u8fd9\u4e2a\u4e0d\u77e5\u9053\u600e\u4e48\u7ffb\u8bd1<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0-R, --reverse \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u4e0a\u4f20\u5230<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">FTP<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0-L, --dereference \u00a0 \u00a0 \u00a0download symbolic links as files\u00a0#<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u8fd9\u4e2a\u4e0d\u77e5\u9053\u600e\u4e48\u7ffb\u8bd1<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0-N, --newer-than=SPEC \u00a0<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u53ea\u4e0b\u8f7d\u67d0\u4e2a\u7279\u5b9a\u65f6\u95f4\u4ee5\u540e\u66f4\u65b0\u8fc7\u7684\u6587\u4ef6<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0-P, --parallel[=N] \u00a0 \u00a0<\/span> <span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u540c\u65f6\u4e0b\u8f7d<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">N<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u4e2a\u6587\u4ef6<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0-i RX, --include RX \u00a0 \u00a0<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u4e0b\u8f7d\u65f6\u5305\u542b\u7684\u6587\u4ef6\u540d\u79f0\uff0c<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">RX<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u8868\u793a\u6b63\u5219\u8868\u8fbe\u5f0f<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0-x RX, --exclude RX \u00a0 \u00a0<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u4e0b\u8f7d\u65f6\u4e0d\u5305\u542b\u7684\u6587\u4ef6\u540d\u79f0\uff0c<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">RX<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u8868\u793a\u6b63\u5219\u8868\u8fbe\u5f0f<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0-v, --verbose[=N] \u00a0 \u00a0 \u00a0<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u5173\u4e8e\u64cd\u4f5c\u7684\u8be6\u7ec6\u8f93\u51fa\u3002<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0 \u00a0 \u00a0--log=FILE \u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u5c06\u5df2\u7ecf\u6267\u884c\u8fc7\u7684<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">lftp<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u547d\u4ee4\u5199\u5165\u6587\u4ef6<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0 \u00a0 \u00a0--script=FILE \u00a0 \u00a0 \u00a0<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u5c06<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">lftp<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u547d\u4ee4\u5199\u5165\u6587\u4ef6\uff0c\u4f46\u4e0d\u6267\u884c<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: 'Courier new'\">\u00a0 \u00a0 \u00a0--just-print, --dry-run \u00a0 \u00a0same as --script=-\u00a0#<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u8fd9\u4e2a\u4e0d\u77e5\u9053\u600e\u4e48\u7ffb\u8bd1<\/span><\/p>\n<p align=\"left\"><span style=\"font-family: 'Courier new'\">\u00a0<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u5f53\u4f60\u4f7f\u7528<\/span><span style=\"font-size: 12pt;font-family: 'Courier new'\">-R<\/span><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u76ee\u5f55\u662f\u672c\u5730\uff0c\u7b2c\u4e8c\u4e2a\u76ee\u5f55\u662f\u8fdc\u7a0b\u3002<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u5982\u679c\u7701\u7565\u4e86\u7b2c\u4e8c\u4e2a\u76ee\u5f55\uff0c\u5c31\u4f1a\u4f7f\u7528\u7b2c\u4e00\u4e2a\u76ee\u5f55\u7684\u540d\u79f0\u4f5c\u4e3a\u4e0a\u4f20\u540e\u7684\u76ee\u5f55\u540d\u79f0\u3002<\/span><\/p>\n<p align=\"left\"><span style=\"font-size: 12pt;font-family: \u6977\u4f53\">\u5982\u679c\u7701\u7565\u7b2c\u4e00\u548c\u7b2c\u4e8c\u4e2a\u76ee\u5f55\uff0c\u5219\u4f7f\u7528\u5f53\u524d\u7684\u672c\u5730\u548c\u8fdc\u7a0b\u76ee\u5f55\u3002<\/span><\/p>\n<\/div>\n<div>\n<div style=\"font-family: arial,helvetica,clean,sans-serif;font-size: small;line-height: 25px\"><\/div>\n<\/div>\n<div>\n<div>\u53c2\u8003\uff1ahttp:\/\/www.anjing.me\/37.html<\/div>\n<div>\u00a0 \u00a0 \u00a0 http:\/\/www.51osos.com\/a\/Linux_CentOS_RedHat\/Linuxgaoji\/2010\/1017\/lftp-mirror.html<\/div>\n<div>\u00a0 \u00a0 \u00a0 http:\/\/www.360doc.com\/content\/12\/0222\/17\/8765846_188684023.shtml<\/div>\n<div>\u00a0 \u00a0 \u00a0 http:\/\/www.cnblogs.com\/LJ-fish\/archive\/2010\/03\/15\/1686607.html<\/div>\n<div>\u00a0 \u00a0 \u00a0 http:\/\/blog.csdn.net\/zhangzheng0413\/article\/details\/7594510<\/div>\n<div>\u00a0 \u00a0 \u00a0 http:\/\/www.howdoing.cn\/network\/lftp-mirror\u5e2e\u52a9.htm<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528ftp\u7684get\u547d\u4ee4\u65e0\u6cd5\u4e0b\u8f7d\u6587\u4ef6\u5939\uff0c\u8fd9\u4e2a\u65f6\u5019\u53ef\u4ee5\u7528lftp\u7684mirror\u547d\u4ee4\uff1a \u00a0 \u57fa\u672c\u7528\u6cd5 1\u3001yum -y install lftp \/\/\u5b89\u88c5lftp 2\u3001lftp 192.168.1.124 \/\/(\u6216\u76f4\u63a5\u8f93\u5165ftp\u7684\u7f51\u5740)\u767b\u5f55\u8fdc\u7a0bftp 3\u3001user root \/\/\u8f93\u5165ftp\u7528\u6237\u540droot\u00a0(\u533f\u540dftp\u4e0d\u7528\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801) 4\u3001111111 \/\/\u8f93\u5165ftp\u5bc6\u7801\uff08\u4e0d\u56de\u663e\uff09 5\u3001mirror jsweb \/opt\/www \u00a0\/\/\u5c06ftp\u4e0a\u7684jsweb(\u6587\u4ef6\u5939\u540d\u79f0)\u4e0b\u8f7d\u5230\u672c\u5730\u7684\/opt\/www \u00a0 lftp mirror\u7684\u9ad8\u7ea7\u5e94\u7528\u4e3e\u4f8b mirror \u2013delete \u2013only-newer \u2013verbose work \/opt\/bak\/ \u81ea\u52a8\u5907\u4efd\u670d\u52a1\u5668work\u6587\u4ef6\u5939\uff0c\u5230\u672c\u5730opt\/bak\u6587\u4ef6\u5939\u4e0b\uff0c\u5e76\u4e14\u5220\u9664\u5df2\u7ecf\u4e0d\u5b58\u5728\u7684\u6587\u4ef6\uff0c\u5e76\u4e14\u53ea\u4e0b\u8f7d\u6700\u65b0\u7684\u6587\u4ef6\uff0c\u518d\u7ed9\u51fa\u8be6\u7ec6\u7684\u8f93\u51fa\u3002 \u7528 lftp \u7684 -e \u9009\u9879\uff0c\u628a\u547d\u4ee4\u76f4\u63a5\u63a5\u5728 lftp \u4e4b\u540e\uff1a lftp -u username,password -e\u201dmirror \u2013delete \u2013only-newer \u2013verbose \/work bak\/\u201d ftpIP \u4e5f\u53ef\u4ee5\u7528 at \u9009\u9879\u6307\u5b9a\u5907\u4efd\u7684\u65f6\u95f4\uff1a lftp at 01:00 -u username,password&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/156"}],"collection":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=156"}],"version-history":[{"count":1,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":157,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/156\/revisions\/157"}],"wp:attachment":[{"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}