{"id":11899,"date":"2025-04-18T19:03:15","date_gmt":"2025-04-18T11:03:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/11899.html"},"modified":"2025-04-18T19:03:15","modified_gmt":"2025-04-18T11:03:15","slug":"%e4%bd%bf%e7%94%a8-rsync-%e8%bf%9b%e8%a1%8c%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%96%87%e4%bb%b6%e5%90%8c%e6%ad%a5%e4%b8%8e%e4%bc%98%e5%8c%96","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/11899.html","title":{"rendered":"\u4f7f\u7528 rsync \u8fdb\u884c\u670d\u52a1\u5668\u6587\u4ef6\u540c\u6b65\u4e0e\u4f18\u5316"},"content":{"rendered":"<h4>\u4f7f\u7528 Rsync \u5de5\u5177\u5728\u4e24\u53f0 Linux \u670d\u52a1\u5668\u4e4b\u95f4\u540c\u6b65\u6587\u4ef6<\/h4>\n<p>Rsync \u662f\u4e00\u79cd\u9ad8\u6548\u7684\u6587\u4ef6\u540c\u6b65\u5de5\u5177&#xff0c;\u5b83\u53ef\u4ee5\u5728\u672c\u5730\u6216\u8fdc\u7a0b\u670d\u52a1\u5668\u4e4b\u95f4\u540c\u6b65\u6587\u4ef6\u548c\u76ee\u5f55\u3002Rsync \u901a\u8fc7\u4ec5\u4f20\u8f93\u6587\u4ef6\u7684\u53d8\u5316\u90e8\u5206\u6765\u51cf\u5c11\u6570\u636e\u4f20\u8f93\u91cf&#xff0c;\u56e0\u6b64\u7279\u522b\u9002\u5408\u7528\u4e8e\u5b9a\u671f\u5907\u4efd\u6216\u540c\u6b65\u5927\u91cf\u6570\u636e\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5c06 A \u670d\u52a1\u5668\u7684\u6587\u4ef6\u540c\u6b65\u5230 B \u670d\u52a1\u5668\u3002<\/p>\n<h5>1. \u51c6\u5907\u5de5\u4f5c<\/h5>\n<p>\u5728\u5f00\u59cb\u4e4b\u524d&#xff0c;\u786e\u4fdd\u4ee5\u4e0b\u6761\u4ef6\u5df2\u6ee1\u8db3&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u4e24\u53f0 Linux \u670d\u52a1\u5668&#xff1a;A \u670d\u52a1\u5668&#xff08;\u6e90\u670d\u52a1\u5668&#xff09;\u548c B \u670d\u52a1\u5668&#xff08;\u76ee\u6807\u670d\u52a1\u5668&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>SSH \u8bbf\u95ee\u6743\u9650&#xff1a;\u786e\u4fdd\u4f60\u53ef\u4ee5\u901a\u8fc7 SSH \u4ece A \u670d\u52a1\u5668\u8bbf\u95ee B \u670d\u52a1\u5668&#xff0c;\u6216\u8005\u53cd\u4e4b\u3002<\/p>\n<\/li>\n<li>\n<p>Rsync \u5b89\u88c5&#xff1a;\u786e\u4fdd Rsync \u5728\u4e24\u53f0\u670d\u52a1\u5668\u4e0a\u5747\u5df2\u5b89\u88c5\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">rsync<\/span>  <span class=\"token comment\"># \u5bf9\u4e8e\u57fa\u4e8e Debian \u7684\u7cfb\u7edf&#xff08;\u5982 Ubuntu&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> yum <span class=\"token function\">install<\/span> <span class=\"token function\">rsync<\/span>      <span class=\"token comment\"># \u5bf9\u4e8e\u57fa\u4e8e Red Hat \u7684\u7cfb\u7edf&#xff08;\u5982 CentOS&#xff09;<\/span>\n <\/li>\n<\/ul>\n<h5>2. \u914d\u7f6e SSH \u65e0\u5bc6\u7801\u767b\u5f55<\/h5>\n<p>\u4e3a\u4e86\u7b80\u5316 Rsync \u7684\u4f7f\u7528&#xff0c;\u5efa\u8bae\u914d\u7f6e SSH \u65e0\u5bc6\u7801\u767b\u5f55\u3002\u8fd9\u6837\u5728\u6267\u884c Rsync \u547d\u4ee4\u65f6\u4e0d\u9700\u8981\u624b\u52a8\u8f93\u5165\u5bc6\u7801\u3002<\/p>\n<p>\u5728 A \u670d\u52a1\u5668\u4e0a\u751f\u6210 SSH \u5bc6\u94a5&#xff08;\u5982\u679c\u5c1a\u672a\u751f\u6210&#xff09;&#xff1a;<\/p>\n<p>ssh-keygen -t rsa<\/p>\n<p>\u6309\u63d0\u793a\u64cd\u4f5c&#xff0c;\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4f1a\u5728 ~\/.ssh\/ \u76ee\u5f55\u4e0b\u751f\u6210 id_rsa \u548c id_rsa.pub \u6587\u4ef6\u3002<\/p>\n<p>\u5c06\u516c\u94a5\u590d\u5236\u5230 B \u670d\u52a1\u5668&#xff1a;<\/p>\n<p>ssh-copy-id user&#064;B_server_ip<\/p>\n<p>\u5176\u4e2d user \u662f B \u670d\u52a1\u5668\u7684\u7528\u6237\u540d&#xff0c;B_server_ip \u662f B \u670d\u52a1\u5668\u7684 IP \u5730\u5740\u3002\u8f93\u5165 B \u670d\u52a1\u5668\u7684\u5bc6\u7801\u540e&#xff0c;\u516c\u94a5\u5c06\u88ab\u590d\u5236\u5230 B \u670d\u52a1\u5668\u7684 ~\/.ssh\/authorized_keys \u6587\u4ef6\u4e2d\u3002<\/p>\n<p>\u6d4b\u8bd5\u65e0\u5bc6\u7801\u767b\u5f55&#xff1a;<\/p>\n<p><span class=\"token function\">ssh<\/span> user&#064;B_server_ip<\/p>\n<p>\u5982\u679c\u914d\u7f6e\u6b63\u786e&#xff0c;\u4f60\u5e94\u8be5\u80fd\u591f\u65e0\u9700\u5bc6\u7801\u767b\u5f55\u5230 B \u670d\u52a1\u5668\u3002<\/p>\n<h5>3. \u4f7f\u7528 Rsync \u540c\u6b65\u6587\u4ef6<\/h5>\n<p>\u57fa\u672c\u547d\u4ee4\u683c\u5f0f&#xff1a;<\/p>\n<p><span class=\"token function\">rsync<\/span> <span class=\"token punctuation\">[<\/span>\u9009\u9879<span class=\"token punctuation\">]<\/span> \u6e90\u8def\u5f84 \u76ee\u6807\u8def\u5f84<\/p>\n<p>\u5c06 A \u670d\u52a1\u5668\u7684\u6587\u4ef6\u540c\u6b65\u5230 B \u670d\u52a1\u5668&#xff1a;<\/p>\n<p><span class=\"token function\">rsync<\/span> -avz -e <span class=\"token function\">ssh<\/span> \/path\/to\/source\/ user&#064;B_server_ip:\/path\/to\/destination\/<\/p>\n<p>\u53c2\u6570\u89e3\u91ca&#xff1a;<\/p>\n<ul>\n<li>-a&#xff1a;\u5f52\u6863\u6a21\u5f0f&#xff0c;\u8868\u793a\u9012\u5f52\u4f20\u8f93\u5e76\u4fdd\u6301\u6587\u4ef6\u5c5e\u6027&#xff08;\u5982\u6743\u9650\u3001\u65f6\u95f4\u6233\u7b49&#xff09;\u3002<\/li>\n<li>-v&#xff1a;\u8be6\u7ec6\u6a21\u5f0f&#xff0c;\u8f93\u51fa\u540c\u6b65\u8fc7\u7a0b\u4e2d\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/li>\n<li>-z&#xff1a;\u538b\u7f29\u4f20\u8f93&#xff0c;\u51cf\u5c11\u6570\u636e\u4f20\u8f93\u91cf\u3002<\/li>\n<li>-e ssh&#xff1a;\u6307\u5b9a\u4f7f\u7528 SSH \u4f5c\u4e3a\u8fdc\u7a0b shell\u3002<\/li>\n<li>\/path\/to\/source\/&#xff1a;A \u670d\u52a1\u5668\u4e0a\u8981\u540c\u6b65\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u8def\u5f84\u3002<\/li>\n<li>user&#064;B_server_ip:\/path\/to\/destination\/&#xff1a;B \u670d\u52a1\u5668\u4e0a\u7684\u76ee\u6807\u8def\u5f84\u3002<\/li>\n<\/ul>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p>\u5047\u8bbe A \u670d\u52a1\u5668\u4e0a\u6709\u4e00\u4e2a\u76ee\u5f55 \/home\/user\/data&#xff0c;\u6211\u4eec\u60f3\u5c06\u5176\u540c\u6b65\u5230 B \u670d\u52a1\u5668\u7684 \/backup\/data \u76ee\u5f55&#xff0c;\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p><span class=\"token function\">rsync<\/span> -avz -e <span class=\"token function\">ssh<\/span> \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/<\/p>\n<p>\u6ce8\u610f\u4e8b\u9879&#xff1a;<\/p>\n<ul>\n<li>\u5982\u679c\u76ee\u6807\u8def\u5f84\u4e0d\u5b58\u5728&#xff0c;Rsync \u4f1a\u81ea\u52a8\u521b\u5efa\u3002<\/li>\n<li>\u5982\u679c\u6e90\u8def\u5f84\u4ee5 \/ \u7ed3\u5c3e&#xff0c;Rsync \u4f1a\u540c\u6b65\u76ee\u5f55\u5185\u5bb9&#xff1b;\u5982\u679c\u4e0d\u4ee5 \/ \u7ed3\u5c3e&#xff0c;Rsync \u4f1a\u540c\u6b65\u6574\u4e2a\u76ee\u5f55\u3002<\/li>\n<\/ul>\n<h5>4. \u5b9a\u671f\u81ea\u52a8\u540c\u6b65<\/h5>\n<p>\u4e3a\u4e86\u5b9a\u671f\u81ea\u52a8\u540c\u6b65\u6587\u4ef6&#xff0c;\u53ef\u4ee5\u4f7f\u7528 cron \u4efb\u52a1\u3002<\/p>\n<p>\u7f16\u8f91 cron \u4efb\u52a1&#xff1a;<\/p>\n<p><span class=\"token function\">crontab<\/span> -e<\/p>\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u884c\u4ee5\u6bcf\u5929\u51cc\u6668 2 \u70b9\u540c\u6b65&#xff1a;<\/p>\n<p><span class=\"token number\">0<\/span> <span class=\"token number\">2<\/span> * * * <span class=\"token function\">rsync<\/span> -avz -e <span class=\"token function\">ssh<\/span> \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/<\/p>\n<p>\u4fdd\u5b58\u5e76\u9000\u51fa\u7f16\u8f91\u5668\u3002<\/p>\n<h5>5. \u9ad8\u7ea7\u9009\u9879<\/h5>\n<ul>\n<li>\n<p>1.\u6307\u5b9a SSH \u7aef\u53e3 \u5982\u679c B \u670d\u52a1\u5668\u7684 SSH \u7aef\u53e3\u4e0d\u662f\u9ed8\u8ba4\u7684 22&#xff0c;\u53ef\u4ee5\u901a\u8fc7 -e \u53c2\u6570\u6307\u5b9a\u7aef\u53e3\u53f7&#xff1a;<\/p>\n<p> <span class=\"token function\">rsync<\/span> -avz -e <span class=\"token string\">&#034;ssh -p 2222&#034;<\/span> \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/\n <\/li>\n<li>\n<p>2.\u6a21\u62df\u8fd0\u884c&#xff1a; \u5982\u679c\u4e0d\u786e\u5b9a rsync \u4f1a\u8986\u76d6\u54ea\u4e9b\u6587\u4ef6&#xff0c;\u53ef\u4ee5\u5148\u4f7f\u7528 &#8211;dry-run \u53c2\u6570\u8fdb\u884c\u6a21\u62df\u8fd0\u884c&#xff1a;<\/p>\n<p> <span class=\"token function\">rsync<\/span> -avz &#8211;dry-run -e <span class=\"token string\">&#034;ssh -p 51222&#034;<\/span> \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/\n <\/li>\n<li>\n<p>3.\u6392\u9664\u7279\u5b9a\u6587\u4ef6\u6216\u76ee\u5f55&#xff1a;<\/p>\n<p> <span class=\"token function\">rsync<\/span> -avz -e <span class=\"token function\">ssh<\/span> &#8211;exclude <span class=\"token string\">&#039;*.log&#039;<\/span> \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/\n <\/li>\n<li>\n<p>4.\u6392\u9664\u591a\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55&#xff1a;<\/p>\n<p> <span class=\"token function\">rsync<\/span> -avz -e <span class=\"token function\">ssh<\/span> &#8211;exclude <span class=\"token string\">&#039;*.log&#039;<\/span> &#8211;exclude <span class=\"token string\">&#039;log&#039;<\/span> \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/\n <\/li>\n<li>\n<p>5.\u540e\u53f0\u8fd0\u884c rsync&#xff1a; \u5bf9\u4e8e\u5927\u6587\u4ef6\u4f20\u8f93&#xff0c;\u53ef\u4ee5\u5c06 rsync \u653e\u5230\u540e\u53f0\u8fd0\u884c&#xff0c;\u4f7f\u7528 nohup \u547d\u4ee4&#xff1a;<\/p>\n<p> <span class=\"token function\">nohup<\/span> <span class=\"token function\">rsync<\/span> -avz -e <span class=\"token string\">&#034;ssh -p 2222&#034;<\/span> \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/ <span class=\"token operator\">&gt;<\/span> 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> <span class=\"token operator\">&amp;<\/span><\/p>\n<p>\u65e5\u5fd7\u4f1a\u5199\u5165 rsync.log \u6587\u4ef6&#xff0c;\u53ef\u4ee5\u968f\u65f6\u67e5\u770b\u8fdb\u5ea6&#xff1a;<\/p>\n<p> <span class=\"token function\">tail<\/span> -f rsync.log\n <\/li>\n<li>\n<p>6.\u67e5\u770b\u8fdb\u5ea6&#xff1a; \u5982\u679c\u5e0c\u671b\u5b9e\u65f6\u67e5\u770b\u4f20\u8f93\u8fdb\u5ea6&#xff0c;\u53ef\u4ee5\u5728 rsync \u547d\u4ee4\u4e2d\u6dfb\u52a0 &#8211;progress \u53c2\u6570&#xff1a;<\/p>\n<p> <span class=\"token function\">rsync<\/span> -avz &#8211;progress -e <span class=\"token string\">&#034;ssh -p 2222&#034;<\/span> \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/\n <\/li>\n<li>\n<p>7.\u4e2d\u6b62\u540c\u6b65&#xff1a; \u5982\u679c\u9700\u8981\u5728\u540c\u6b65\u8fc7\u7a0b\u4e2d\u4e2d\u6b62\u4efb\u52a1&#xff0c;\u53ef\u4ee5\u6309\u4e0b Ctrl &#043; C&#xff08;\u524d\u53f0\u8fd0\u884c&#xff09;&#xff0c;\u6216\u8005\u4f7f\u7528 kill \u547d\u4ee4\u7ec8\u6b62\u540e\u53f0\u8fdb\u7a0b&#xff1a;<\/p>\n<p> <span class=\"token function\">ps<\/span> aux <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> <span class=\"token function\">rsync<\/span><br \/>\n<span class=\"token function\">kill<\/span> <span class=\"token operator\">&lt;<\/span>PID<span class=\"token operator\">&gt;<\/span>\n <\/li>\n<li>\n<p>8.\u8986\u76d6\u5df2\u5b58\u5728\u7684\u6587\u4ef6&#xff1a; rsync \u9ed8\u8ba4\u4f1a\u8986\u76d6\u76ee\u6807\u670d\u52a1\u5668\u4e0a\u5df2\u5b58\u5728\u7684\u6587\u4ef6\u3002\u5982\u679c\u4e0d\u5e0c\u671b\u8986\u76d6&#xff0c;\u53ef\u4ee5\u4f7f\u7528 &#8211;ignore-existing \u53c2\u6570&#xff1a;<\/p>\n<p> <span class=\"token function\">rsync<\/span> -avz &#8211;ignore-existing -e <span class=\"token string\">&#034;ssh -p 2222&#034;<\/span> \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/\n <\/li>\n<li>\n<p>9.\u5f3a\u5236\u8986\u76d6\u5df2\u5b58\u5728\u7684\u6587\u4ef6&#xff1a; \u5982\u679c\u76ee\u6807\u670d\u52a1\u5668\u4e0a\u5b58\u5728\u4e00\u4e9b\u7279\u6b8a\u6587\u4ef6&#xff08;\u4f8b\u5982\u7b26\u53f7\u94fe\u63a5\u6216\u8bbe\u5907\u6587\u4ef6&#xff09;&#xff0c;rsync \u9ed8\u8ba4\u4f1a\u8df3\u8fc7\u8fd9\u4e9b\u6587\u4ef6\u3002\u5982\u679c\u4f60\u5e0c\u671b\u5f3a\u5236\u8986\u76d6\u8fd9\u4e9b\u6587\u4ef6&#xff0c;\u53ef\u4ee5\u4f7f\u7528 &#8211;force \u53c2\u6570\u3002<\/p>\n<p> <span class=\"token function\">rsync<\/span> -avz &#8211;force -e <span class=\"token string\">&#034;ssh -p 2222&#034;<\/span> \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/\n <\/li>\n<li>\n<p>10.\u5907\u4efd\u88ab\u8986\u76d6\u7684\u6587\u4ef6&#xff1a; \u5982\u679c\u5e0c\u671b\u5728\u8986\u76d6\u76ee\u6807\u6587\u4ef6\u4e4b\u524d\u5907\u4efd\u8fd9\u4e9b\u6587\u4ef6&#xff0c;\u53ef\u4ee5\u4f7f\u7528 &#8211;backup \u53c2\u6570&#xff1a;<\/p>\n<p> <span class=\"token function\">rsync<\/span> -avz &#8211;backup -e <span class=\"token string\">&#034;ssh -p 51222&#034;<\/span> \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/\n <\/li>\n<li>\n<p>11.\u9650\u5236\u5e26\u5bbd&#xff1a;<\/p>\n<p> <span class=\"token function\">rsync<\/span> -avz -e <span class=\"token function\">ssh<\/span> &#8211;bwlimit<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1000<\/span> \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/<\/p>\n<p>\u5176\u4e2d &#8211;bwlimit&#061;1000 \u8868\u793a\u9650\u5236\u5e26\u5bbd\u4e3a 1000 KB\/s\u3002<\/p>\n<\/li>\n<\/ul>\n<h5>6. \u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/h5>\n<p>\u95ee\u98981&#xff1a;SSH \u8fde\u63a5\u8d85\u65f6<\/p>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5&#xff0c;\u786e\u4fdd\u4e24\u53f0\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u7f51\u7edc\u7545\u901a\u3002\u53ef\u4ee5\u5c1d\u8bd5\u589e\u52a0 SSH \u8fde\u63a5\u8d85\u65f6\u65f6\u95f4&#xff1a;<\/p>\n<p><span class=\"token function\">rsync<\/span> -avz -e <span class=\"token string\">&#034;ssh -o ConnectTimeout&#061;10&#034;<\/span> \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/<\/p>\n<p>\u95ee\u98982&#xff1a;\u6743\u9650\u4e0d\u8db3<\/p>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u786e\u4fdd\u4f60\u6709\u8db3\u591f\u7684\u6743\u9650\u8bbf\u95ee\u6e90\u548c\u76ee\u6807\u8def\u5f84\u3002\u53ef\u4ee5\u4f7f\u7528 sudo \u6216\u4ee5\u5177\u6709\u8db3\u591f\u6743\u9650\u7684\u7528\u6237\u8eab\u4efd\u6267\u884c\u547d\u4ee4\u3002<\/p>\n<p>\u95ee\u98983&#xff1a;\u6587\u4ef6\u51b2\u7a81<\/p>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u4f7f\u7528 &#8211;backup \u9009\u9879\u5907\u4efd\u51b2\u7a81\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token function\">rsync<\/span> -avz -e <span class=\"token function\">ssh<\/span> &#8211;backup \/home\/user\/data\/ user&#064;B_server_ip:\/backup\/data\/<\/p>\n<h5>7. \u603b\u7ed3<\/h5>\n<p>\u901a\u8fc7 Rsync \u5de5\u5177&#xff0c;\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u4e24\u53f0 Linux \u670d\u52a1\u5668\u4e4b\u95f4\u540c\u6b65\u6587\u4ef6\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4ece\u51c6\u5907\u5de5\u4f5c\u5230\u914d\u7f6e SSH \u65e0\u5bc6\u7801\u767b\u5f55&#xff0c;\u518d\u5230\u4f7f\u7528 Rsync \u8fdb\u884c\u6587\u4ef6\u540c\u6b65\u7684\u6574\u4e2a\u8fc7\u7a0b\u3002\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u77e5\u8bc6&#xff0c;\u4f60\u53ef\u4ee5\u9ad8\u6548\u5730\u7ba1\u7406\u548c\u540c\u6b65\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6709\u4efb\u4f55\u95ee\u9898\u6216\u9700\u8981\u8fdb\u4e00\u6b65\u7684\u5e2e\u52a9&#xff0c;\u8bf7\u968f\u65f6\u8054\u7cfb\u6211\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb826\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u901a\u8fc7 Rsync \u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u4e24\u53f0 Linux \u670d\u52a1\u5668\u4e4b\u95f4\u540c\u6b65\u6587\u4ef6\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4ece\u51c6\u5907\u5de5\u4f5c\u5230\u914d\u7f6e SSH \u65e0\u5bc6\u7801\u767b\u5f55\uff0c\u518d\u5230\u4f7f\u7528 Rsync \u8fdb\u884c\u6587\u4ef6\u540c\u6b65\u7684\u6574\u4e2a\u8fc7\u7a0b\u3002\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u77e5\u8bc6\uff0c\u4f60\u53ef\u4ee5\u9ad8\u6548\u5730\u7ba1\u7406\u548c\u540c\u6b65\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6\u3002\u5982\u679c\u4f60\u6709\u4efb\u4f55\u95ee\u9898\u6216\u9700\u8981\u8fdb\u4e00\u6b65\u7684\u5e2e\u52a9\uff0c\u8bf7\u968f\u65f6\u8054\u7cfb\u6211\u3002_rsync \u540c\u6b65\u6587\u4ef6<\/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":[58,43,44],"topic":[],"class_list":["post-11899","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528 rsync \u8fdb\u884c\u670d\u52a1\u5668\u6587\u4ef6\u540c\u6b65\u4e0e\u4f18\u5316 - \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\/11899.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 \u8fdb\u884c\u670d\u52a1\u5668\u6587\u4ef6\u540c\u6b65\u4e0e\u4f18\u5316 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb826\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u901a\u8fc7 Rsync \u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u4e24\u53f0 Linux \u670d\u52a1\u5668\u4e4b\u95f4\u540c\u6b65\u6587\u4ef6\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4ece\u51c6\u5907\u5de5\u4f5c\u5230\u914d\u7f6e SSH \u65e0\u5bc6\u7801\u767b\u5f55\uff0c\u518d\u5230\u4f7f\u7528 Rsync \u8fdb\u884c\u6587\u4ef6\u540c\u6b65\u7684\u6574\u4e2a\u8fc7\u7a0b\u3002\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u77e5\u8bc6\uff0c\u4f60\u53ef\u4ee5\u9ad8\u6548\u5730\u7ba1\u7406\u548c\u540c\u6b65\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6\u3002\u5982\u679c\u4f60\u6709\u4efb\u4f55\u95ee\u9898\u6216\u9700\u8981\u8fdb\u4e00\u6b65\u7684\u5e2e\u52a9\uff0c\u8bf7\u968f\u65f6\u8054\u7cfb\u6211\u3002_rsync \u540c\u6b65\u6587\u4ef6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/11899.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T11:03:15+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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/11899.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/11899.html\",\"name\":\"\u4f7f\u7528 rsync \u8fdb\u884c\u670d\u52a1\u5668\u6587\u4ef6\u540c\u6b65\u4e0e\u4f18\u5316 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T11:03:15+00:00\",\"dateModified\":\"2025-04-18T11:03:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/11899.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/11899.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/11899.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528 rsync \u8fdb\u884c\u670d\u52a1\u5668\u6587\u4ef6\u540c\u6b65\u4e0e\u4f18\u5316\"}]},{\"@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 \u8fdb\u884c\u670d\u52a1\u5668\u6587\u4ef6\u540c\u6b65\u4e0e\u4f18\u5316 - \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\/11899.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528 rsync \u8fdb\u884c\u670d\u52a1\u5668\u6587\u4ef6\u540c\u6b65\u4e0e\u4f18\u5316 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb826\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u901a\u8fc7 Rsync \u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u4e24\u53f0 Linux \u670d\u52a1\u5668\u4e4b\u95f4\u540c\u6b65\u6587\u4ef6\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u4ece\u51c6\u5907\u5de5\u4f5c\u5230\u914d\u7f6e SSH \u65e0\u5bc6\u7801\u767b\u5f55\uff0c\u518d\u5230\u4f7f\u7528 Rsync \u8fdb\u884c\u6587\u4ef6\u540c\u6b65\u7684\u6574\u4e2a\u8fc7\u7a0b\u3002\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u77e5\u8bc6\uff0c\u4f60\u53ef\u4ee5\u9ad8\u6548\u5730\u7ba1\u7406\u548c\u540c\u6b65\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6\u3002\u5982\u679c\u4f60\u6709\u4efb\u4f55\u95ee\u9898\u6216\u9700\u8981\u8fdb\u4e00\u6b65\u7684\u5e2e\u52a9\uff0c\u8bf7\u968f\u65f6\u8054\u7cfb\u6211\u3002_rsync \u540c\u6b65\u6587\u4ef6","og_url":"https:\/\/www.wsisp.com\/helps\/11899.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T11:03:15+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/11899.html","url":"https:\/\/www.wsisp.com\/helps\/11899.html","name":"\u4f7f\u7528 rsync \u8fdb\u884c\u670d\u52a1\u5668\u6587\u4ef6\u540c\u6b65\u4e0e\u4f18\u5316 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T11:03:15+00:00","dateModified":"2025-04-18T11:03:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/11899.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/11899.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/11899.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528 rsync \u8fdb\u884c\u670d\u52a1\u5668\u6587\u4ef6\u540c\u6b65\u4e0e\u4f18\u5316"}]},{"@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\/11899","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=11899"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/11899\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=11899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=11899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=11899"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=11899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}