{"id":56474,"date":"2025-08-14T19:04:48","date_gmt":"2025-08-14T11:04:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/56474.html"},"modified":"2025-08-14T19:04:48","modified_gmt":"2025-08-14T11:04:48","slug":"%e4%bd%bf%e7%94%a8-rsync-%e4%b8%8a%e4%bc%a0%e4%b8%8b%e8%bd%bd%e6%96%87%e4%bb%b6%ef%bc%9a%e8%af%a6%e8%a7%a3%e5%8e%9f%e7%90%86%e3%80%81%e7%9b%ae%e5%bd%95%e5%90%8c%e6%ad%a5%e5%92%8c%e5%b8%b8%e8%a7%81","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/56474.html","title":{"rendered":"\u4f7f\u7528 rsync \u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\uff1a\u8be6\u89e3\u539f\u7406\u3001\u76ee\u5f55\u540c\u6b65\u548c\u5e38\u89c1\u95ee\u9898"},"content":{"rendered":"<h2>\u4f7f\u7528 rsync \u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6&#xff1a;\u8be6\u89e3\u539f\u7406\u3001\u76ee\u5f55\u540c\u6b65\u548c\u5e38\u89c1\u95ee\u9898<\/h2>\n<p>\u5728\u65e5\u5e38\u8fd0\u7ef4\u3001\u5f00\u53d1\u548c\u5907\u4efd\u4efb\u52a1\u4e2d&#xff0c;rsync \u662f\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u4e14\u9ad8\u6548\u7684\u6587\u4ef6\u540c\u6b65\u5de5\u5177\u3002\u5b83\u4e0d\u4ec5\u652f\u6301\u672c\u5730\u6587\u4ef6\u540c\u6b65&#xff0c;\u8fd8\u80fd\u901a\u8fc7\u7f51\u7edc\u5c06\u6587\u4ef6\u4f20\u8f93\u5230\u8fdc\u7a0b\u670d\u52a1\u5668&#xff0c;\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5e94\u7528\u90e8\u7f72\u3001\u5b9a\u65f6\u5907\u4efd\u3001\u96c6\u7fa4\u540c\u6b65\u7b49\u573a\u666f\u3002 \u82e5\u4f7f\u7528 rsync \u534f\u8bae\u7684\u4f20\u8f93\u65b9\u5f0f&#xff0c;\u53ef\u4ee5\u53c2\u8003\u6211\u7684\u53e6\u4e00\u7bc7\u6587\u7ae0\u57fa\u4e8e rsync &#043; lsyncd \u7684\u9ad8\u6548\u6587\u4ef6\u4f20\u8f93\u7cfb\u7edf\u67b6\u6784\u8bbe\u8ba1\u53ca\u5b9e\u8df5\u6307\u5357<\/p>\n<h3>\u4e00\u3001\u4ec0\u4e48\u662f rsync&#xff1f;<\/h3>\n<p>rsync&#xff08;remote sync&#xff09;\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u8fdc\u7a0b\u6570\u636e\u540c\u6b65\u5de5\u5177&#xff0c;\u9002\u7528\u4e8e\u7c7b Unix \u7cfb\u7edf\u3002\u5b83\u53ef\u4ee5\u9ad8\u6548\u5730\u5c06\u6587\u4ef6\u6216\u76ee\u5f55\u540c\u6b65\u5230\u672c\u5730\u6216\u8fdc\u7a0b\u4e3b\u673a&#xff0c;\u5e76\u4e14\u51e0\u4e4e\u6240\u6709 Linux \u53d1\u884c\u7248\u90fd\u5185\u7f6e\u4e86 rsync \u5de5\u5177\u3002 rsync \u7684\u4e3b\u8981\u529f\u80fd\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\u5c06\u672c\u5730\u6587\u4ef6\/\u76ee\u5f55\u540c\u6b65\u5230\u8fdc\u7a0b\u4e3b\u673a<\/li>\n<li>\u5c06\u8fdc\u7a0b\u4e3b\u673a\u7684\u6587\u4ef6\/\u76ee\u5f55\u540c\u6b65\u5230\u672c\u5730<\/li>\n<li>\u652f\u6301\u65ad\u70b9\u7eed\u4f20\u548c\u589e\u91cf\u5907\u4efd<\/li>\n<li>\u652f\u6301\u538b\u7f29\u4f20\u8f93\u3001\u4fdd\u7559\u6587\u4ef6\u6743\u9650\u3001\u8f6f\u94fe\u63a5\u3001\u65f6\u95f4\u6233\u7b49\u5c5e\u6027<\/li>\n<li>\u4f20\u8f93\u65f6\u53ea\u590d\u5236\u53d1\u751f\u53d8\u5316\u7684\u90e8\u5206&#xff0c;\u8282\u7701\u5e26\u5bbd\u548c\u65f6\u95f4<\/li>\n<\/ul>\n<h3>\u4e8c\u3001rsync \u7684\u5de5\u4f5c\u539f\u7406<\/h3>\n<p>rsync \u4f7f\u7528\u4e00\u79cd\u540d\u4e3a \u201c\u5dee\u5f02\u7b97\u6cd5\u201d&#xff08;delta-transfer algorithm&#xff09; \u7684\u6280\u672f&#xff0c;\u5728\u6e90\u6587\u4ef6\u548c\u76ee\u6807\u6587\u4ef6\u4e4b\u95f4\u8fdb\u884c\u6bd4\u5bf9&#xff0c;\u53ea\u540c\u6b65\u4fee\u6539\u90e8\u5206&#xff0c;\u4ece\u800c\u8fbe\u5230\u9ad8\u6548\u4f20\u8f93\u7684\u76ee\u7684\u3002 \u5176\u4f20\u8f93\u8fc7\u7a0b\u4e00\u822c\u5305\u62ec\u4ee5\u4e0b\u6b65\u9aa4&#xff1a; 1\u3001\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u7aef\u534f\u5546\u6587\u4ef6\u5217\u8868\u548c\u5c5e\u6027&#xff08;\u6587\u4ef6\u5927\u5c0f\u3001\u4fee\u6539\u65f6\u95f4\u3001\u6743\u9650\u7b49&#xff09; 2\u3001\u901a\u8fc7\u5bf9\u6bd4\u751f\u6210\u6821\u9a8c\u548c&#xff0c;\u53ea\u4f20\u8f93\u6709\u5dee\u5f02\u7684\u90e8\u5206 3\u3001\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u53ef\u9009\u62e9\u538b\u7f29&#xff08;\u5982 -z \u53c2\u6570&#xff09;&#xff0c;\u8fdb\u4e00\u6b65\u63d0\u5347\u6548\u7387 4\u3001\u652f\u6301\u57fa\u4e8e SSH \u6216 rsync \u534f\u8bae\u7684\u4f20\u8f93\u65b9\u5f0f<\/p>\n<h3>\u4e09\u3001rsync \u7684\u57fa\u672c\u7528\u6cd5<\/h3>\n<p>1\u3001\u4e0a\u4f20\u6587\u4ef6\u5230\u8fdc\u7a0b\u670d\u52a1\u5668&#xff1a;<\/p>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-avhz<\/span> <span class=\"token parameter variable\">&#8211;progress<\/span> \/path\/to\/local\/file user&#064;remote:\/path\/to\/remote\/<\/p>\n<p>\u547d\u4ee4\u6267\u884c\u540e&#xff0c;\u4f60\u9700\u8981\u8f93\u5165 user&#064;remote \u8d26\u6237\u7684 SSH \u767b\u5f55\u5bc6\u7801&#xff0c;\u82e5\u4e0d\u60f3\u8f93\u5165\u9700\u8981\u63d0\u524d\u914d\u7f6e\u514d\u5bc6\u8ba4\u8bc1&#xff0c;\u8981\u5b9e\u73b0\u514d\u5bc6\u8ba4\u8bc1\u767b\u5f55&#xff0c;\u9700\u8981\u5148\u751f\u6210 SSH \u5bc6\u94a5\u5bf9&#xff0c;\u7136\u540e\u5c06\u516c\u94a5\u590d\u5236\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u3002 2\u3001\u4ece\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0b\u8f7d\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-avhz<\/span> <span class=\"token parameter variable\">&#8211;progress<\/span> user&#064;remote:\/path\/to\/remote\/file \/path\/to\/local\/<\/p>\n<p>\u53c2\u6570\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>-a&#xff1a;\u5f52\u6863\u6a21\u5f0f&#xff0c;\u9012\u5f52\u4f20\u8f93&#xff0c;\u5e76\u4fdd\u7559\u6587\u4ef6\u6743\u9650\u7b49<\/li>\n<li>-v&#xff1a;\u663e\u793a\u8be6\u7ec6\u4fe1\u606f&#xff08;verbose&#xff09;<\/li>\n<li>-z&#xff1a;\u538b\u7f29\u6570\u636e\u4f20\u8f93<\/li>\n<li>-h&#xff1a;\u4ee5\u4eba\u7c7b\u53ef\u8bfb\u65b9\u5f0f\u663e\u793a\u6587\u4ef6\u5927\u5c0f<\/li>\n<li>-z&#xff1a;\u538b\u7f29\u6570\u636e\u4f20\u8f93<\/li>\n<li>&#8211;progress&#xff1a;\u663e\u793a\u4f20\u8f93\u8fdb\u5ea6<\/li>\n<li>-e ssh&#xff1a;\u901a\u8fc7 SSH \u534f\u8bae\u4f20\u8f93&#xff08;\u9ed8\u8ba4\u4e5f\u4f1a\u4f7f\u7528&#xff09;<\/li>\n<\/ul>\n<h3>\u56db\u3001\u76ee\u5f55\u540c\u6b65\u7684\u5173\u952e\u95ee\u9898&#xff1a;\u659c\u6760&#xff08;\/&#xff09;<\/h3>\n<p>\u8fd9\u662f rsync \u6700\u5bb9\u6613\u5f15\u8d77\u8bef\u89e3\u7684\u5730\u65b9&#xff1a;<\/p>\n<h4>\u793a\u4f8b\u4e00&#xff1a;\u5e26\u659c\u6760<\/h4>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-av<\/span> \/src\/ \/dst\/<\/p>\n<p>\u6548\u679c&#xff1a;\u5c06 \/src\/ \u76ee\u5f55\u4e2d\u7684\u5185\u5bb9\u540c\u6b65\u5230 \/dst\/&#xff0c;\u4e0d\u5305\u542b \/src\/ \u76ee\u5f55\u672c\u8eab\u3002<\/p>\n<h4>\u793a\u4f8b\u4e8c&#xff1a;\u4e0d\u5e26\u659c\u6760<\/h4>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-av<\/span> \/src \/dst\/<\/p>\n<p>\u6548\u679c&#xff1a;\u5c06\u6574\u4e2a \/src \u76ee\u5f55&#xff08;\u5305\u62ec\u76ee\u5f55\u672c\u8eab&#xff09;\u590d\u5236\u5230 \/dst\/&#xff0c;\u76ee\u6807\u8def\u5f84\u5c06\u53d8\u4e3a \/dst\/src\/ \u603b\u7ed3&#xff1a; \u662f\u5426\u52a0\u5c3e\u90e8 \/&#xff0c;\u51b3\u5b9a\u662f\u5426\u62f7\u8d1d\u76ee\u5f55\u672c\u8eab\u3002\u8fd9\u4e2a\u5dee\u5f02\u5728\u81ea\u52a8\u5316\u811a\u672c\u4e2d\u5c24\u5176\u91cd\u8981&#xff01;<\/p>\n<h3>\u4e94\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u5904\u7406\u65b9\u6cd5<\/h3>\n<h4>1\u3001rsync: command not found<\/h4>\n<p>\u53ef\u80fd\u662f\u76ee\u6807\u4e3b\u673a\u672a\u5b89\u88c5 rsync&#xff0c;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5&#xff1a;<\/p>\n<ul>\n<li>Debian\/Ubuntu:<\/li>\n<\/ul>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">rsync<\/span><\/p>\n<ul>\n<li>CentOS\/RHEL:<\/li>\n<\/ul>\n<p><span class=\"token function\">sudo<\/span> yum <span class=\"token function\">install<\/span> <span class=\"token function\">rsync<\/span><\/p>\n<h4>2\u3001Permission denied<\/h4>\n<p>\u5e38\u89c1\u4e8e\u4f7f\u7528 SSH \u8fde\u63a5\u65f6\u6ca1\u6709\u6743\u9650\u3002\u8bf7\u786e\u8ba4&#xff1a;<\/p>\n<ul>\n<li>\u662f\u5426\u53ef\u4ee5 SSH \u767b\u5f55\u8fdc\u7a0b\u4e3b\u673a&#xff1f;<\/li>\n<li>\u7528\u6237\u6743\u9650\u662f\u5426\u5141\u8bb8\u8bbf\u95ee\u6307\u5b9a\u76ee\u5f55&#xff1f;<\/li>\n<li>\u76ee\u6807\u76ee\u5f55\u662f\u5426\u5b58\u5728&#xff0c;\u6743\u9650\u662f\u5426\u53ef\u5199&#xff1f;<\/li>\n<\/ul>\n<h4>3\u3001\u76ee\u6807\u6587\u4ef6\u88ab\u8986\u76d6<\/h4>\n<p>\u8bf7\u7279\u522b\u6ce8\u610f\u76ee\u5f55\u672b\u5c3e\u7684 \/ \u95ee\u9898&#xff0c;\u9519\u8bef\u4f7f\u7528\u4f1a\u5bfc\u81f4\u7ed3\u6784\u4e0d\u4e00\u81f4\u3002\u4f8b\u5982\u672c\u610f\u662f\u66f4\u65b0\u76ee\u5f55\u5185\u5bb9&#xff0c;\u4f46\u5374\u66ff\u6362\u4e86\u6574\u4e2a\u76ee\u5f55\u3002<\/p>\n<h4>4\u3001\u7b26\u53f7\u94fe\u63a5\u672a\u6b63\u786e\u590d\u5236<\/h4>\n<p>\u4f7f\u7528 -a \u53c2\u6570\u65f6\u9ed8\u8ba4\u4f1a\u4fdd\u6301\u7b26\u53f7\u94fe\u63a5\u3002\u5982\u679c\u9700\u8981\u5c06\u94fe\u63a5\u6307\u5411\u7684\u771f\u5b9e\u6587\u4ef6\u590d\u5236&#xff0c;\u53ef\u4ee5\u52a0 -L \u53c2\u6570&#xff1a;<\/p>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-avL<\/span> \/src\/ \/dst\/<\/p>\n<h4>5\u3001\u907f\u514d\u540c\u6b65\u9690\u85cf\u6587\u4ef6\u5931\u8d25<\/h4>\n<p>rsync \u9ed8\u8ba4\u4f1a\u540c\u6b65\u9690\u85cf\u6587\u4ef6&#xff0c;\u4f46\u786e\u4fdd\u4f60\u7684 shell \u547d\u4ee4\u5199\u6cd5\u6b63\u786e&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-av<\/span> \/src\/ \/dst\/<\/p>\n<p>\u4e0d\u8981\u9057\u6f0f\u76ee\u5f55\u524d\u7684 . \u6587\u4ef6&#xff0c;\u5efa\u8bae\u4f7f\u7528\u901a\u914d\u7b26\u65f6\u52a0\u5f15\u53f7\u6216\u7528\u5b8c\u6574\u8def\u5f84\u660e\u786e\u5339\u914d\u3002 \u6bd4\u5982\u5047\u8bbe\u76ee\u5f55 \/myapp\/ \u4e0b\u6709\u8fd9\u4e9b\u6587\u4ef6&#xff1a;<\/p>\n<p>index.html<br \/>\napp.js<br \/>\n.env<br \/>\n.gitignore<\/p>\n<p>\u9519\u8bef\u5199\u6cd5&#xff1a;<\/p>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-av<\/span> \/myapp\/* user&#064;remote:\/backup\/<\/p>\n<p>\u2705 \u540c\u6b65\u4e86 index.html \u548c app.js \u274c \u4f46 **\u6ca1\u6709\u540c\u6b65 .env \u548c **.gitignore&#xff0c;\u56e0\u4e3a * \u4e0d\u4f1a\u5339\u914d\u9690\u85cf\u6587\u4ef6&#xff01;<\/p>\n<hr \/>\n<p>\u6b63\u786e\u5199\u6cd5 1&#xff1a;\u52a0\u5f15\u53f7\u4fdd\u7559\u901a\u914d\u7b26&#xff0c;\u7531 rsync \u81ea\u5df1\u89e3\u6790<\/p>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-av<\/span> <span class=\"token string\">&#034;\/myapp\/&#034;<\/span> user&#064;remote:\/backup\/<\/p>\n<p>\u6216<\/p>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-av<\/span> <span class=\"token string\">&#034;\/myapp\/.&#034;<\/span> user&#064;remote:\/backup\/<\/p>\n<p>\u2705 \u8fd9\u4f1a\u540c\u6b65\u6574\u4e2a\u76ee\u5f55\u5185\u5bb9&#xff0c;\u5305\u62ec\u9690\u85cf\u6587\u4ef6&#xff08;\u6ce8\u610f\u5c3e\u90e8 \/ \u6216 \/.&#xff09;\u3002<\/p>\n<hr \/>\n<p>\u6b63\u786e\u5199\u6cd5 2&#xff1a;\u7528\u5b8c\u6574\u8def\u5f84<\/p>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-av<\/span> \/myapp\/ user&#064;remote:\/backup\/<\/p>\n<p>\u2705 \u76f4\u63a5\u6307\u5b9a\u76ee\u5f55&#xff0c;\u4e0d\u7528\u901a\u914d\u7b26&#xff0c;\u5c31\u4e0d\u4f1a\u6f0f\u6389\u4efb\u4f55\u6587\u4ef6&#xff0c;\u5305\u62ec\u9690\u85cf\u6587\u4ef6\u3002<\/p>\n<h3>\u516d\u3001\u9644\u52a0\u6280\u5de7<\/h3>\n<h4>1\u3001\u5e72\u8dd1&#xff08;\u9884\u89c8&#xff09;\u6a21\u5f0f&#xff1a;<\/h4>\n<p>\u201c\u5e72\u8dd1&#xff08;\u9884\u89c8&#xff09;\u6a21\u5f0f\u201d\u662f\u6307\u5728\u6267\u884c rsync \u547d\u4ee4\u65f6&#xff0c;\u4e0d\u771f\u7684\u8fdb\u884c\u6587\u4ef6\u540c\u6b65&#xff0c;\u800c\u662f\u6a21\u62df\u8fd0\u884c\u4e00\u904d&#xff0c;\u628a\u5373\u5c06\u6267\u884c\u7684\u64cd\u4f5c\u663e\u793a\u51fa\u6765&#xff0c;\u8ba9\u4f60\u63d0\u524d\u77e5\u9053\u54ea\u4e9b\u6587\u4ef6\u5c06\u88ab\u590d\u5236\u3001\u5220\u9664\u6216\u8df3\u8fc7\u3002<\/p>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-avn<\/span> \/src\/ \/dst\/<\/p>\n<p>\u52a0 -n&#xff08;\u6216 &#8211;dry-run&#xff09;\u53c2\u6570\u53ef\u4ee5\u9884\u89c8\u540c\u6b65\u5185\u5bb9&#xff0c;\u975e\u5e38\u9002\u5408\u6d4b\u8bd5\u811a\u672c\u6216\u9a8c\u8bc1\u8def\u5f84\u662f\u5426\u6b63\u786e\u3002<\/p>\n<h4>2\u3001\u5220\u9664\u76ee\u6807\u4e2d\u591a\u4f59\u6587\u4ef6&#xff08;\u4fdd\u6301\u5b8c\u5168\u540c\u6b65&#xff09;&#xff1a;<\/h4>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-av<\/span> <span class=\"token parameter variable\">&#8211;delete<\/span> \/src\/ \/dst\/<\/p>\n<h4>3\u3001\u5b9a\u65f6\u4efb\u52a1\u7ed3\u5408 cron \u505a\u5b9a\u671f\u540c\u6b65&#xff1a;<\/h4>\n<p>\u7f16\u8f91\u5b9a\u65f6\u4efb\u52a1&#xff1a;<\/p>\n<p><span class=\"token function\">crontab<\/span> <span class=\"token parameter variable\">-e<\/span><\/p>\n<p>\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\u5b9e\u73b0\u6bcf\u665a 1 \u70b9\u540c\u6b65&#xff1a;<\/p>\n<p><span class=\"token number\">0<\/span> <span class=\"token number\">1<\/span> * * * <span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-az<\/span> \/src\/ user&#064;remote:\/backup\/ <span class=\"token operator\">&gt;&gt;<\/span> \/var\/log\/rsync.log <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><span class=\"token file-descriptor important\">&amp;1<\/span><\/p>\n<h4>4\u3001\u9650\u901f\u540c\u6b65&#xff08;\u63a7\u5236\u5e26\u5bbd\u5360\u7528&#xff09;&#xff1a;<\/h4>\n<p>\u5982\u679c\u4f60\u5728\u751f\u4ea7\u73af\u5883\u8fd0\u884c rsync&#xff0c;\u4e3a\u4e86\u9632\u6b62\u5360\u6ee1\u7f51\u7edc\u5e26\u5bbd&#xff0c;\u53ef\u4ee5\u52a0\u4e0a &#8211;bwlimit&#061;KBps \u53c2\u6570\u3002 \u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token parameter variable\">-avz<\/span> <span class=\"token parameter variable\">&#8211;bwlimit<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">500<\/span> <span class=\"token parameter variable\">&#8211;progress<\/span> \/src\/ user&#064;remote:\/dst\/<\/p>\n<p>\u2705 \u8868\u793a\u5c06\u540c\u6b65\u901f\u5ea6\u9650\u5236\u4e3a 500KB\/s&#xff0c;\u907f\u514d\u5f71\u54cd\u5176\u4ed6\u4e1a\u52a1\u3002<\/p>\n<p>\u4f7f\u7528\u5efa\u8bae&#xff1a;<\/p>\n<ul>\n<li>\u503c\u662f\u6bcf\u79d2\u7684\u6700\u5927\u4f20\u8f93\u901f\u7387&#xff08;\u5355\u4f4d&#xff1a;KB\/s&#xff09;<\/li>\n<li>\u7279\u522b\u9002\u5408\u5728\u4e1a\u52a1\u9ad8\u5cf0\u671f\u95f4\u540c\u6b65\u5927\u6587\u4ef6\u65f6\u4f7f\u7528<\/li>\n<\/ul>\n<hr \/>\n<h3>\u603b\u7ed3<\/h3>\n<p>rsync \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u3001\u914d\u7f6e\u7075\u6d3b\u7684\u540c\u6b65\u5de5\u5177\u3002\u5728\u4f7f\u7528\u65f6\u8981\u7279\u522b\u6ce8\u610f\u76ee\u5f55\u8def\u5f84\u7684\u659c\u6760\u7528\u6cd5&#xff0c;\u4ee5\u907f\u514d\u7ed3\u6784\u9519\u8bef\u6216\u8bef\u5220\u9664\u3002\u914d\u5408 cron \u7b49\u5de5\u5177\u8fd8\u80fd\u6784\u5efa\u81ea\u52a8\u5316\u5907\u4efd\u65b9\u6848\u3002\u4e86\u89e3\u5176\u539f\u7406\u548c\u5e38\u89c1\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6cd5&#xff0c;\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u52a0\u5b89\u5168\u9ad8\u6548\u5730\u4f7f\u7528 rsync\u3002<\/p>\n<hr \/>\n<h3>\u7ed3\u8bed<\/h3>\n<p>&#x1f4ac; \u91cd\u70b9\u63d0\u9192 &#xff1a;\u559c\u6b22\u8bf7\u52a0\u5173\u6ce8\u54e6 &#xff01; &#x1f4e3; \u66f4\u591a\u539f\u521b\u5185\u5bb9\u3001\u6280\u672f\u5e72\u8d27&#xff0c;\u6b22\u8fce\u5173\u6ce8\u300c\u952e\u4e0a\u6c5f\u6e56\u300d&#xff0c;\u4e0e\u4f60\u4e00\u952e\u76f8\u9022&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb851\u6b21\uff0c\u70b9\u8d5e39\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86rsync\u5de5\u5177\u7684\u57fa\u672c\u539f\u7406\u3001\u4f7f\u7528\u65b9\u6cd5\u548c\u5e38\u89c1\u95ee\u9898\u3002rsync\u662f\u4e00\u4e2a\u9ad8\u6548\u7684\u6587\u4ef6\u540c\u6b65\u5de5\u5177\uff0c\u652f\u6301\u672c\u5730\u548c\u8fdc\u7a0b\u4f20\u8f93\uff0c\u5177\u6709\u589e\u91cf\u5907\u4efd\u3001\u65ad\u70b9\u7eed\u4f20\u7b49\u529f\u80fd\u3002\u6587\u7ae0\u8be6\u7ec6\u8bb2\u89e3\u4e86rsync\u7684\u5de5\u4f5c\u539f\u7406\u3001\u57fa\u672c\u547d\u4ee4\u683c\u5f0f\u3001\u76ee\u5f55\u540c\u6b65\u65f6\u659c\u6760(\/)\u7684\u91cd\u8981\u533a\u522b\uff0c\u4ee5\u53ca\u5e38\u89c1\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6cd5\u3002\u8fd8\u63d0\u4f9b\u4e86\u9644\u52a0\u6280\u5de7\uff0c\u5982\u5e72\u8dd1\u9884\u89c8\u6a21\u5f0f\u3001\u5b9a\u65f6\u540c\u6b65\u3001\u9650\u901f\u63a7\u5236\u7b49\u5b9e\u7528\u529f\u80fd\u3002\u7279\u522b\u5f3a\u8c03\u4e86\u76ee\u5f55\u8def\u5f84\u672b\u5c3e\u659c\u6760\u7684\u4e0d\u540c\u542b\u4e49\u5bf9\u540c\u6b65\u7ed3\u679c\u7684\u5f71\u54cd\uff0c\u8fd9\u662f\u4f7f\u7528rsync\u65f6\u6700\u5bb9\u6613\u51fa\u9519\u7684\u5730\u65b9\u3002\u6587\u7ae0\u6700\u540e\u5efa\u8bae\u5408\u7406\u4f7f\u7528rsync\u7684\u5404\u9879\u53c2\u6570\uff0c\u7ed3\u5408cron\u7b49\u5de5\u5177\u6784\u5efa\u81ea\u52a8\u5316\u5907\u4efd\u65b9\u6848\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1232,1481,5878],"topic":[],"class_list":["post-56474","post","type-post","status-publish","format-standard","hentry","category-server","tag-rsync","tag-1481","tag-5878"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528 rsync \u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\uff1a\u8be6\u89e3\u539f\u7406\u3001\u76ee\u5f55\u540c\u6b65\u548c\u5e38\u89c1\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/56474.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528 rsync \u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\uff1a\u8be6\u89e3\u539f\u7406\u3001\u76ee\u5f55\u540c\u6b65\u548c\u5e38\u89c1\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb851\u6b21\uff0c\u70b9\u8d5e39\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86rsync\u5de5\u5177\u7684\u57fa\u672c\u539f\u7406\u3001\u4f7f\u7528\u65b9\u6cd5\u548c\u5e38\u89c1\u95ee\u9898\u3002rsync\u662f\u4e00\u4e2a\u9ad8\u6548\u7684\u6587\u4ef6\u540c\u6b65\u5de5\u5177\uff0c\u652f\u6301\u672c\u5730\u548c\u8fdc\u7a0b\u4f20\u8f93\uff0c\u5177\u6709\u589e\u91cf\u5907\u4efd\u3001\u65ad\u70b9\u7eed\u4f20\u7b49\u529f\u80fd\u3002\u6587\u7ae0\u8be6\u7ec6\u8bb2\u89e3\u4e86rsync\u7684\u5de5\u4f5c\u539f\u7406\u3001\u57fa\u672c\u547d\u4ee4\u683c\u5f0f\u3001\u76ee\u5f55\u540c\u6b65\u65f6\u659c\u6760(\/)\u7684\u91cd\u8981\u533a\u522b\uff0c\u4ee5\u53ca\u5e38\u89c1\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6cd5\u3002\u8fd8\u63d0\u4f9b\u4e86\u9644\u52a0\u6280\u5de7\uff0c\u5982\u5e72\u8dd1\u9884\u89c8\u6a21\u5f0f\u3001\u5b9a\u65f6\u540c\u6b65\u3001\u9650\u901f\u63a7\u5236\u7b49\u5b9e\u7528\u529f\u80fd\u3002\u7279\u522b\u5f3a\u8c03\u4e86\u76ee\u5f55\u8def\u5f84\u672b\u5c3e\u659c\u6760\u7684\u4e0d\u540c\u542b\u4e49\u5bf9\u540c\u6b65\u7ed3\u679c\u7684\u5f71\u54cd\uff0c\u8fd9\u662f\u4f7f\u7528rsync\u65f6\u6700\u5bb9\u6613\u51fa\u9519\u7684\u5730\u65b9\u3002\u6587\u7ae0\u6700\u540e\u5efa\u8bae\u5408\u7406\u4f7f\u7528rsync\u7684\u5404\u9879\u53c2\u6570\uff0c\u7ed3\u5408cron\u7b49\u5de5\u5177\u6784\u5efa\u81ea\u52a8\u5316\u5907\u4efd\u65b9\u6848\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/56474.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-14T11:04:48+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/56474.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/56474.html\",\"name\":\"\u4f7f\u7528 rsync \u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\uff1a\u8be6\u89e3\u539f\u7406\u3001\u76ee\u5f55\u540c\u6b65\u548c\u5e38\u89c1\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-14T11:04:48+00:00\",\"dateModified\":\"2025-08-14T11:04:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/56474.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/56474.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/56474.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528 rsync \u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\uff1a\u8be6\u89e3\u539f\u7406\u3001\u76ee\u5f55\u540c\u6b65\u548c\u5e38\u89c1\u95ee\u9898\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528 rsync \u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\uff1a\u8be6\u89e3\u539f\u7406\u3001\u76ee\u5f55\u540c\u6b65\u548c\u5e38\u89c1\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/56474.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528 rsync \u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\uff1a\u8be6\u89e3\u539f\u7406\u3001\u76ee\u5f55\u540c\u6b65\u548c\u5e38\u89c1\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb851\u6b21\uff0c\u70b9\u8d5e39\u6b21\uff0c\u6536\u85cf19\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86rsync\u5de5\u5177\u7684\u57fa\u672c\u539f\u7406\u3001\u4f7f\u7528\u65b9\u6cd5\u548c\u5e38\u89c1\u95ee\u9898\u3002rsync\u662f\u4e00\u4e2a\u9ad8\u6548\u7684\u6587\u4ef6\u540c\u6b65\u5de5\u5177\uff0c\u652f\u6301\u672c\u5730\u548c\u8fdc\u7a0b\u4f20\u8f93\uff0c\u5177\u6709\u589e\u91cf\u5907\u4efd\u3001\u65ad\u70b9\u7eed\u4f20\u7b49\u529f\u80fd\u3002\u6587\u7ae0\u8be6\u7ec6\u8bb2\u89e3\u4e86rsync\u7684\u5de5\u4f5c\u539f\u7406\u3001\u57fa\u672c\u547d\u4ee4\u683c\u5f0f\u3001\u76ee\u5f55\u540c\u6b65\u65f6\u659c\u6760(\/)\u7684\u91cd\u8981\u533a\u522b\uff0c\u4ee5\u53ca\u5e38\u89c1\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6cd5\u3002\u8fd8\u63d0\u4f9b\u4e86\u9644\u52a0\u6280\u5de7\uff0c\u5982\u5e72\u8dd1\u9884\u89c8\u6a21\u5f0f\u3001\u5b9a\u65f6\u540c\u6b65\u3001\u9650\u901f\u63a7\u5236\u7b49\u5b9e\u7528\u529f\u80fd\u3002\u7279\u522b\u5f3a\u8c03\u4e86\u76ee\u5f55\u8def\u5f84\u672b\u5c3e\u659c\u6760\u7684\u4e0d\u540c\u542b\u4e49\u5bf9\u540c\u6b65\u7ed3\u679c\u7684\u5f71\u54cd\uff0c\u8fd9\u662f\u4f7f\u7528rsync\u65f6\u6700\u5bb9\u6613\u51fa\u9519\u7684\u5730\u65b9\u3002\u6587\u7ae0\u6700\u540e\u5efa\u8bae\u5408\u7406\u4f7f\u7528rsync\u7684\u5404\u9879\u53c2\u6570\uff0c\u7ed3\u5408cron\u7b49\u5de5\u5177\u6784\u5efa\u81ea\u52a8\u5316\u5907\u4efd\u65b9\u6848\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/56474.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-14T11:04:48+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/56474.html","url":"https:\/\/www.wsisp.com\/helps\/56474.html","name":"\u4f7f\u7528 rsync \u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\uff1a\u8be6\u89e3\u539f\u7406\u3001\u76ee\u5f55\u540c\u6b65\u548c\u5e38\u89c1\u95ee\u9898 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-14T11:04:48+00:00","dateModified":"2025-08-14T11:04:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/56474.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/56474.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/56474.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528 rsync \u4e0a\u4f20\u4e0b\u8f7d\u6587\u4ef6\uff1a\u8be6\u89e3\u539f\u7406\u3001\u76ee\u5f55\u540c\u6b65\u548c\u5e38\u89c1\u95ee\u9898"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/56474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=56474"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/56474\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=56474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=56474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=56474"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=56474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}