{"id":6511,"date":"2022-03-01T22:32:58","date_gmt":"2022-03-02T06:32:58","guid":{"rendered":"https:\/\/www.xh86.me\/?p=6511"},"modified":"2022-03-01T22:33:06","modified_gmt":"2022-03-02T06:33:06","slug":"linux%e8%bf%90%e7%bb%b4%e9%9b%b6%e5%9f%ba%e7%a1%80%e5%ad%a6%e4%b9%a0%e8%b5%84%e6%96%99%ef%bc%9arsyncsersync%e5%ae%9e%e7%8e%b0%e6%95%b0%e6%8d%ae%e5%ae%9e%e6%97%b6%e5%90%8c%e6%ad%a5","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=6511","title":{"rendered":"Rsync+sersync\u5b9e\u73b0\u6570\u636e\u5b9e\u65f6\u540c\u6b65"},"content":{"rendered":"<div class=\"wxsyncmain\">\n<section style=\"font-size: 15px; letter-spacing: 1px; line-height: 2; box-sizing: border-box; font-style: normal; font-weight: 400; text-align: justify;\" data-mpa-powered-by=\"yiban.io\">\n<section style=\"text-align: center; margin-top: 10px; margin-bottom: 10px; box-sizing: border-box;\">\n<section style=\"max-width: 100%; vertical-align: middle; display: inline-block; line-height: 0; box-sizing: border-box;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/03\/wxsync-2022-03-063d491e6fdffff3be406838e2855bd2.jpeg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"vertical-align: middle; max-width: 100%; box-sizing: border-box;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/03\/wxsync-2022-03-063d491e6fdffff3be406838e2855bd2.jpeg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.4\" data-type=\"jpeg\" data-w=\"750\" \/><\/div><\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<section style=\"margin: 50px 0% 10px; display: flex; flex-flow: row nowrap; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: auto; vertical-align: top; background-color: #f7f7f9; flex: 100 100 0%; height: auto; align-self: stretch; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"text-align: center; justify-content: center; margin: -22px 0% 10px; display: flex; flex-flow: row nowrap; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; min-width: 10%; max-width: 100%; flex: 0 0 auto; height: auto; line-height: 0; align-self: center; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 55px; height: 55px; vertical-align: top; overflow: hidden; border-radius: 185px; background-color: #000000; box-sizing: border-box; border: 0px none #3e3e3e;\">\n<section style=\"justify-content: center; transform: translate3d(1px, 0px, 0px); -webkit-transform: translate3d(1px, 0px, 0px); -moz-transform: translate3d(1px, 0px, 0px); -o-transform: translate3d(1px, 0px, 0px); margin: 28px 0% 0px; box-sizing: border-box;\">\n<section style=\"letter-spacing: 0px; color: #ffffff; line-height: 0.1; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\u76ee\u5f55<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: top; width: auto; flex: 0 0 0%; height: auto; line-height: 0; align-self: flex-start; box-sizing: border-box;\">\n<section style=\"transform: rotateZ(145deg); -webkit-transform: rotateZ(145deg); -moz-transform: rotateZ(145deg); -o-transform: rotateZ(145deg); box-sizing: border-box;\">\n<section style=\"text-align: right; justify-content: flex-end; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 10px; vertical-align: top; border-bottom: 2px solid #f5ac97; border-bottom-right-radius: 0px; height: auto; box-sizing: border-box;\">\n<section style=\"transform: rotateZ(24deg); -webkit-transform: rotateZ(24deg); -moz-transform: rotateZ(24deg); -o-transform: rotateZ(24deg); box-sizing: border-box;\">\n<section style=\"margin: 0px 0% 8px; box-sizing: border-box;\">\n<section style=\"background-color: #31302f; height: 2px; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"margin: 20px 0%; box-sizing: border-box;\">\n<section style=\"line-height: 1.8; letter-spacing: 1px; padding: 0px 26px; color: #000000; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\"><span style=\"color: #827fc4; box-sizing: border-box;\">\u4e00\uff1a<\/span>Rsync\u6982\u8ff0<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"margin: 20px 0%; box-sizing: border-box;\">\n<section style=\"line-height: 1.8; letter-spacing: 1px; padding: 0px 26px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\"><span style=\"color: #827fc4; box-sizing: border-box;\">\u4e8c\uff1a<span style=\"color: #000000; box-sizing: border-box;\">Rsync\u670d\u52a1\u5b89\u88c5<\/span><\/span><\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"margin: 20px 0%; box-sizing: border-box;\">\n<section style=\"line-height: 1.8; letter-spacing: 1px; padding: 0px 26px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: #827fc4; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\u4e09\uff1a<\/strong><\/span><strong style=\"box-sizing: border-box;\">Rsync+sersync\u5b9e\u73b0\u6570\u636e\u5b9e\u65f6\u540c\u6b65<\/strong><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"margin: 10px 0%; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 100%; vertical-align: top; border-width: 1px; border-style: solid none; border-color: #3e3e3e; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"align-items: center; display: flex; margin: -3px 0%; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; flex: 0 0 auto; border-width: 0px 0px 0px 2px; border-style: none none none solid; border-color: #3e3e3e; overflow: hidden; box-sizing: border-box;\">\n<section style=\"text-align: center; margin: 0px 0%; transform: translate3d(-10px, 0px, 0px); -webkit-transform: translate3d(-10px, 0px, 0px); -moz-transform: translate3d(-10px, 0px, 0px); -o-transform: translate3d(-10px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; min-width: 10%; max-width: 100%; vertical-align: top; transform: matrix(1, 0, -0.2, 1, 0, 0); -webkit-transform: matrix(1, 0, -0.2, 1, 0, 0); -moz-transform: matrix(1, 0, -0.2, 1, 0, 0); -o-transform: matrix(1, 0, -0.2, 1, 0, 0); padding: 6px 10px 6px 20px; background-color: #000000; box-sizing: border-box; border: 2px solid #3e3e3e;\">\n<section style=\"line-height: 1; letter-spacing: 0px; padding: 0px; color: #ffffff; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">No.1<\/strong><\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; flex: 1 1 auto; border-width: 0px; box-sizing: border-box;\">\n<section style=\"line-height: 1; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\u00a0 Rsync\u6982\u8ff0<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; flex: 0 0 auto; overflow: hidden; box-sizing: border-box; border: 0px none #3e3e3e;\">\n<section style=\"text-align: center; margin: -2px 0%; transform: translate3d(10px, 0px, 0px); -webkit-transform: translate3d(10px, 0px, 0px); -moz-transform: translate3d(10px, 0px, 0px); -o-transform: translate3d(10px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; min-width: 10%; max-width: 100%; vertical-align: top; transform: matrix(1, 0, -0.2, 1, 0, 0); -webkit-transform: matrix(1, 0, -0.2, 1, 0, 0); -moz-transform: matrix(1, 0, -0.2, 1, 0, 0); -o-transform: matrix(1, 0, -0.2, 1, 0, 0); padding: 6px 10px; background-color: #ffffff; box-sizing: border-box; border: 2px solid #3e3e3e;\">\n<section style=\"line-height: 1; letter-spacing: 0px; padding: 0px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"text-align: center; margin-top: 10px; margin-bottom: 10px; box-sizing: border-box;\">\n<section style=\"max-width: 100%; vertical-align: middle; display: inline-block; line-height: 0; box-sizing: border-box;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/03\/wxsync-2022-03-c5985843787bcb24feabfea163e47188.jpeg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"vertical-align: middle; max-width: 100%; box-sizing: border-box;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/03\/wxsync-2022-03-c5985843787bcb24feabfea163e47188.jpeg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.625\" data-type=\"jpeg\" data-w=\"320\" \/><\/div><\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">Rsync\u662fLinux\u7cfb\u7edf\u4e0b\u7684\u6570\u636e\u955c\u50cf\u5907\u4efd\u5de5\u5177\uff0c\u4f7f\u7528\u5feb\u901f\u589e\u91cf\u5907\u4efd\u5de5\u5177Remote Sync\u53ef\u4ee5\u8fdc\u7a0b\u540c\u6b65\uff0c\u53ef\u4ee5\u5728\u4e0d\u540c\u4e3b\u673a\u4e4b\u95f4\u8fdb\u884c\u540c\u6b65\uff0c\u53ef\u5b9e\u73b0\u5168\u91cf\u5907\u4efd\u4e0e\u589e\u91cf\u5907\u4efd\uff0c\u4fdd\u6301\u94fe\u63a5\u548c\u6743\u9650\uff0c\u4f20\u8f93\u524d\u6267\u884c\u538b\u7f29\uff0c\u56e0\u6b64\u975e\u5e38\u9002\u5408\u7528\u4e8e\u67b6\u6784\u96c6\u4e2d\u5f0f\u5907\u4efd\u6216\u5f02\u5730\u5907\u4efd\u7b49\u5e94\u7528\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"height: auto; box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 10px 0% 15px; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 84.3137 84.3137 0%; height: auto; border-radius: 12px; overflow: hidden; padding: 5px 10px; background-color: #000000; align-self: center; margin: 0px; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"color: #ffffff; letter-spacing: 0px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">1.1 \u00a0Rsync\u6570\u636e\u5907\u4efd<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 10 10 0%; height: auto; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 0px 0%; text-align: center; justify-content: center; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 100 100 0%; height: auto; align-self: center; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"margin: 0.5em 0px; box-sizing: border-box;\">\n<section style=\"background-color: #3e3e3e; height: 1px; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 0 0 0%; height: auto; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"text-align: right; justify-content: flex-end; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 22px; height: 22px; vertical-align: top; overflow: hidden; border-radius: 50%; background-color: rgba(255, 255, 255, 0); line-height: 0; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"transform: rotateZ(315deg); -webkit-transform: rotateZ(315deg); -moz-transform: rotateZ(315deg); -o-transform: rotateZ(315deg); box-sizing: border-box;\">\n<section style=\"text-align: center; justify-content: center; margin: 9px 0% 0px; transform: translate3d(3px, 0px, 0px); -webkit-transform: translate3d(3px, 0px, 0px); -moz-transform: translate3d(3px, 0px, 0px); -o-transform: translate3d(3px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 8px; height: 8px; vertical-align: top; overflow: hidden; border-style: solid none none solid; border-width: 1px; border-color: #3e3e3e #ffffff #ffffff #3e3e3e; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u4e0eSCP\u7684\u6bd4\u8f83\uff1ascp\u65e0\u6cd5\u5907\u4efd\u5927\u91cf\u6570\u636e\uff0c\u7c7b\u4f3cWindows\u7684\u590d\u5236\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u800crsync\u8fb9\u590d\u5236\uff0c\u8fb9\u7edf\u8ba1\uff0c\u8fb9\u6bd4\u8f83\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"height: auto; box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 10px 0% 15px; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 84.3137 84.3137 0%; height: auto; border-radius: 12px; overflow: hidden; padding: 5px 10px; background-color: #000000; align-self: center; margin: 0px; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"color: #ffffff; letter-spacing: 0px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">1.2 \u00a0Rysnc\u7279\u6027\u548c\u4f18\u70b9<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 10 10 0%; height: auto; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 0px 0%; text-align: center; justify-content: center; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 100 100 0%; height: auto; align-self: center; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"margin: 0.5em 0px; box-sizing: border-box;\">\n<section style=\"background-color: #3e3e3e; height: 1px; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 0 0 0%; height: auto; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"text-align: right; justify-content: flex-end; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 22px; height: 22px; vertical-align: top; overflow: hidden; border-radius: 50%; background-color: rgba(255, 255, 255, 0); line-height: 0; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"transform: rotateZ(315deg); -webkit-transform: rotateZ(315deg); -moz-transform: rotateZ(315deg); -o-transform: rotateZ(315deg); box-sizing: border-box;\">\n<section style=\"text-align: center; justify-content: center; margin: 9px 0% 0px; transform: translate3d(3px, 0px, 0px); -webkit-transform: translate3d(3px, 0px, 0px); -moz-transform: translate3d(3px, 0px, 0px); -o-transform: translate3d(3px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 8px; height: 8px; vertical-align: top; overflow: hidden; border-style: solid none none solid; border-width: 1px; border-color: #3e3e3e #ffffff #ffffff #3e3e3e; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">1.\u53ef\u4ee5\u955c\u50cf\u4fdd\u5b58\u6574\u4e2a\u76ee\u5f55\u6811\u548c\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">2.\u53ef\u4ee5\u5f88\u5bb9\u6613\u505a\u5230\u4fdd\u6301\u539f\u6765\u6587\u4ef6\u7684\u5c5e\u6027\u3001\u6743\u9650\u3001\u65f6\u95f4\u3001\u8f6f\u786c\u94fe\u63a5\u7b49\u7b49\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">3.\u65e0\u987b\u7279\u6b8a\u6743\u9650\u5373\u53ef\u5b89\u88c5\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">4.\u5feb\u901f\uff1a\u7b2c\u4e00\u6b21\u540c\u6b65\u65f6\u00a0rsync\u00a0\u590d\u5236\u5168\u90e8\u5185\u5bb9\uff0c\u4f46\u5728\u4e0b\u4e00\u6b21\u53ea\u4f20\u8f93\u4fee\u6539\u8fc7\u7684\u6587\u4ef6\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">5.\u538b\u7f29\u4f20\u8f93\uff1arsync\u00a0\u5728\u4f20\u8f93\u6570\u636e\u7684\u8fc7\u7a0b\u4e2d\u53ef\u4ee5\u5b9e\u884c\u538b\u7f29\u53ca\u89e3\u538b\u7f29\u64cd\u4f5c\uff0c\u56e0\u6b64\u53ef\u4ee5\u4f7f\u7528\u66f4\u5c11\u7684\u5e26\u5bbd\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">6.\u5b89\u5168\u6027\uff1a\u53ef\u4ee5\u4f7f\u7528scp\u3001ssh\u7b49\u65b9\u5f0f\u6765\u4f20\u8f93\u6587\u4ef6\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u901a\u8fc7\u76f4\u63a5\u7684socket\u8fde\u63a5\u3002\u9009\u62e9\u6027\u4fdd\u6301\uff1a\u7b26\u53f7\u8fde\u63a5\uff0c\u786c\u94fe\u63a5\uff0c\u6587\u4ef6\u5c5e\u6027\uff0c\u6743\u9650\uff0c\u65f6\u95f4\u7b49\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"height: auto; box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 10px 0% 15px; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 84.3137 84.3137 0%; height: auto; border-radius: 12px; overflow: hidden; padding: 5px 10px; background-color: #000000; align-self: center; margin: 0px; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"color: #ffffff; letter-spacing: 0px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">1.3\u00a0 Rsync\u539f\u7406<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 10 10 0%; height: auto; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 0px 0%; text-align: center; justify-content: center; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 100 100 0%; height: auto; align-self: center; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"margin: 0.5em 0px; box-sizing: border-box;\">\n<section style=\"background-color: #3e3e3e; height: 1px; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 0 0 0%; height: auto; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"text-align: right; justify-content: flex-end; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 22px; height: 22px; vertical-align: top; overflow: hidden; border-radius: 50%; background-color: rgba(255, 255, 255, 0); line-height: 0; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"transform: rotateZ(315deg); -webkit-transform: rotateZ(315deg); -moz-transform: rotateZ(315deg); -o-transform: rotateZ(315deg); box-sizing: border-box;\">\n<section style=\"text-align: center; justify-content: center; margin: 9px 0% 0px; transform: translate3d(3px, 0px, 0px); -webkit-transform: translate3d(3px, 0px, 0px); -moz-transform: translate3d(3px, 0px, 0px); -o-transform: translate3d(3px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 8px; height: 8px; vertical-align: top; overflow: hidden; border-style: solid none none solid; border-width: 1px; border-color: #3e3e3e #ffffff #ffffff #3e3e3e; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">1.\u8fd0\u884c\u6a21\u5f0f\u548c\u7aef\u53e3\uff1a<\/strong><\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u91c7\u7528C\/S\u6a21\u5f0f\uff08\u5ba2\u6237\u7aef\/\u670d\u52a1\u5668\u6a21\u5f0f\uff09[\u00a0\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u70b9\u5230\u70b9\u7684\u4f20\u8f93\uff0c\u76f4\u63a5\u4f7f\u7528rsync\u547d\u4ee4\u5373\u53ef\u5b8c\u6210\u00a0]<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">rsync\u76d1\u542c\u7684\u7aef\u53e3\uff1a873<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">2.\u56db\u4e2a\u540d\u8bcd\u7684\u89e3\u91ca\uff1a<\/strong><\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u53d1\u8d77\u7aef\uff1a\u8d1f\u8d23\u53d1\u8d77rsync\u540c\u6b65\u64cd\u4f5c\u7684\u5ba2\u6237\u673a\u53eb\u505a\u53d1\u8d77\u7aef\uff0c\u901a\u77e5\u670d\u52a1\u5668\u6211\u8981\u5907\u4efd\u4f60\u7684\u6570\u636e\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5907\u4efd\u6e90\uff1a\u8d1f\u8d23\u54cd\u5e94\u6765\u81ea\u5ba2\u6237\u673arsync\u540c\u6b65\u64cd\u4f5c\u7684\u670d\u52a1\u5668\u53eb\u505a\u5907\u4efd\u6e90\uff0c\u9700\u8981\u5907\u4efd\u7684\u670d\u52a1\u5668\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u670d\u52a1\u7aef\uff1a\u8fd0\u884crsyncd\u670d\u52a1\uff0c\u4e00\u822c\u6765\u8bf4\uff0c\u9700\u8981\u5907\u4efd\u7684\u670d\u52a1\u5668\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5ba2\u6237\u7aef\uff1a\u5b58\u653e\u5907\u4efd\u6570\u636e\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">3.\u6570\u636e\u540c\u6b65\u65b9\u5f0f\uff1a<\/strong><\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u63a8push\uff1a\u4e00\u53f0\u4e3b\u673a\u8d1f\u8d23\u628a\u6570\u636e\u4f20\u9001\u7ed9\u5176\u4ed6\u4e3b\u673a\uff0c\u670d\u52a1\u5668\u5f00\u9500\u5f88\u5927\uff0c\u6bd4\u8f83\u9002\u5408\u540e\u7aef\u670d\u52a1\u5668\u5c11\u7684\u60c5\u51b5\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u62c9pull\uff1a\u6240\u6709\u4e3b\u673a\u5b9a\u65f6\u53bb\u627e\u4e00\u53f0\u4e3b\u673a\u62c9\u6570\u636e\uff0c\u53ef\u80fd\u5c31\u4f1a\u5bfc\u81f4\u6570\u636e\u7f13\u6162\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u63a8\uff1a\u76ee\u7684\u4e3b\u673a\u914d\u7f6e\u4e3arsync\u670d\u52a1\u5668\uff0c\u6e90\u4e3b\u673a\u5468\u671f\u6027\u7684\u4f7f\u7528rsync\u547d\u4ee4\u628a\u8981\u540c\u6b65\u7684\u76ee\u5f55\u63a8\u8fc7\u53bb\uff08\u9700\u8981\u5907\u4efd\u7684\u673a\u5668\u662f\u5ba2\u6237\u7aef\uff0c\u5b58\u50a8\u5907\u4efd\u7684\u673a\u5668\u662f\u670d\u52a1\u7aef\uff09\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u62c9\uff1a\u6e90\u4e3b\u673a\u914d\u7f6e\u4e3arsync\u670d\u52a1\u5668\uff0c\u76ee\u7684\u4e3b\u673a\u5468\u671f\u6027\u7684\u4f7f\u7528rsync\u547d\u4ee4\u628a\u8981\u540c\u6b65\u7684\u76ee\u5f55\u62c9\u8fc7\u6765\uff08\u9700\u8981\u5907\u4efd\u7684\u673a\u5668\u662f\u670d\u52a1\u7aef\uff0c\u5b58\u50a8\u5907\u4efd\u7684\u673a\u5668\u662f\u5ba2\u6237\u7aef\uff09\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u4e24\u79cd\u65b9\u6848\uff0crsync\u90fd\u6709\u5bf9\u5e94\u7684\u547d\u4ee4\u6765\u5b9e\u73b0\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">rsync\u547d\u4ee4\u793a\u4f8b\u8bf4\u660epush\u548cpull<\/p>\n<\/section>\n<section style=\"text-align: center; margin-top: 10px; margin-bottom: 10px; box-sizing: border-box;\">\n<section style=\"max-width: 100%; vertical-align: middle; display: inline-block; line-height: 0; box-sizing: border-box;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/03\/wxsync-2022-03-65f39a7386df9320a1b6c3920d6d0141.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"vertical-align: middle; max-width: 100%; box-sizing: border-box;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/03\/wxsync-2022-03-65f39a7386df9320a1b6c3920d6d0141.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.8360902\" data-type=\"png\" data-w=\"665\" \/><\/div><\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5b9e\u6218\uff1a\u4f7f\u7528rsync\u8fdb\u884c\u6570\u636e\u540c\u6b65<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">rsync\u547d\u4ee4\u7684\u57fa\u672c\u7528\u6cd5\uff1a<\/strong><\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u683c\u5f0f\uff1arsync \u3010\u9009\u9879\u3011 \u6e90\u6587\u4ef6 \u76ee\u6807\u6587\u4ef6<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\u5e38\u89c1\u7684\u9009\u9879\uff1a<\/strong><\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-a\uff0c&#8211;archive(\u5b58\u6863) \u5f52\u6863\u6a21\u5f0f\uff0c\u8868\u793a\u4ee5\u9012\u5f52\u7684\u65b9\u5f0f\u4f20\u8f93\u6587\u4ef6\uff0c\u5e76\u4e14\u4fdd\u6301\u6587\u4ef6\u5c5e\u6027\uff0c\u7b49\u540c\u4e8e\u52a0\u4e86\u53c2\u6570-rlptgoD<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-v\uff1a\u663e\u793arsync\u8fc7\u7a0b\u4e2d\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-r\uff0c\u2013recursive \u5bf9\u5b50\u76ee\u5f55\u4ee5\u9012\u5f52\u6a21\u5f0f\u5904\u7406<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-l,&#8211;links \u8868\u793a\u62f7\u8d1d\u94fe\u63a5\u6587\u4ef6<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-p\u00a0, &#8211;perms \u8868\u793a\u4fdd\u6301\u6587\u4ef6\u539f\u6709\u6743\u9650<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-t\u00a0, &#8211;times \u8868\u793a\u4fdd\u6301\u6587\u4ef6\u539f\u6709\u65f6\u95f4<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-g\u00a0, &#8211;group \u8868\u793a\u4fdd\u6301\u6587\u4ef6\u539f\u6709\u5c5e\u7528\u6237\u7ec4<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-o\u00a0, &#8211;owner \u8868\u793a\u4fdd\u6301\u6587\u4ef6\u539f\u6709\u5c5e\u4e3b<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-D\u00a0, &#8211;devices \u8868\u793a\u5757\u8bbe\u5907\u6587\u4ef6\u4fe1\u606f<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-z\u00a0, &#8211;compress \u8868\u793a\u538b\u7f29\u4f20\u8f93<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-H \u8868\u793a\u786c\u8fde\u63a5\u6587\u4ef6<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-A \u4fdd\u7559ACL\u5c5e\u6027\u4fe1\u606f<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-P \u663e\u793a\u4f20\u8f93\u8fdb\u5ea6<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">&#8211;delete \u5220\u9664\u90a3\u4e9b\u76ee\u6807\u4f4d\u7f6e\u6709\u800c\u539f\u59cb\u4f4d\u7f6e\u6ca1\u6709\u7684\u6587\u4ef6<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u4f8b\uff1a<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">rsync \u00a0&#8211;delete \u00a0\/\u539f\u59cb\u4f4d\u7f6e<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\uff08\u8981\u540c\u6b65\u7684\u6570\u636e\uff09\u00a0\u00a0\u00a0\u00a0192.168.1.64:\/\u76ee\u6807\u4f4d\u7f6e<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\u5b9e\u62181\uff1a\u00a0<\/strong><\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5907\u4efdxuegod63\u7684\/var\/www\/html \u76ee\u5f55\u5230xuegod64\u7684\/web-back\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\u5f00\u59cb\u5907\u4efd\uff1a<\/strong><\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">xuegod63\uff1a \u521b\u5efa\u7528\u4e8e\u6d4b\u8bd5\u7684\u6570\u636e<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># mkdir \/web-back<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># mkdir -p \/var\/www\/html<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># cp -r \/boot\/grub2\/ \/var\/www\/html<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># rsync -azP --delete \/var\/www\/html\/ <\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">root@192.168.1.64:\/web-back<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\u5e38\u89c1\u7684\u9009\u9879\uff1a<\/strong><\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-a\uff0c&#8211;archive(\u5b58\u6863) \u5f52\u6863\u6a21\u5f0f\uff0c\u8868\u793a\u4ee5\u9012\u5f52\u7684\u65b9\u5f0f\u4f20\u8f93\u6587\u4ef6\uff0c\u5e76\u4e14\u4fdd\u6301\u6587\u4ef6\u5c5e\u6027\uff0c\u7b49\u540c\u4e8e\u52a0\u4e86\u53c2\u6570-rlptgoD<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-z\u00a0, &#8211;compress \u8868\u793a\u4f20\u8f93\u524d\u538b\u7f29<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">-P \u663e\u793a\u4f20\u8f93\u8fdb\u5ea6<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">&#8211;delete \u5220\u9664\u90a3\u4e9b\u76ee\u6807\u4f4d\u7f6e\u6709\u800c\u539f\u59cb\u4f4d\u7f6e\u6ca1\u6709\u7684\u6587\u4ef6\uff0c\u4fdd\u969c\u6e90\u6587\u4ef6\u548c\u76ee\u6807\u6587\u4ef6\u4e00\u81f4<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\u5b9e\u62182\uff1a<\/strong> \u4f7f\u7528ssh\u5bc6\u94a5\u5b9e\u73b0\u65e0\u4ea4\u4e92\u5907\u4efd\u3002\u505a\u6210\u811a\u672c\uff0c\u5c06xuegod63\u4e0a\u7684\u6570\u636e\uff0c\u5b9a\u671f\u5907\u4efd\u5230xuegod64\u4e0a\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5728xuegod63\u4e0a\u751f\u6210\u5bc6\u94a5\u5bf9<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># ssh-keygen<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">Generating <span class=\"code-snippet__keyword\" style=\"box-sizing: border-box;\">public<\/span>\/<span class=\"code-snippet__keyword\" style=\"box-sizing: border-box;\">private<\/span> rsa key <span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">pair<\/span>.<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">Enter file in which to save the key (\/root\/.ssh\/id_rsa): #\u76f4\u63a5\u56de\u5e93<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">Enter passphrase (empty for no passphrase): #\u76f4\u63a5\u56de\u5e93<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">Enter same passphrase again:\u00a0\u00a0#\u76f4\u63a5\u56de\u5e93<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">Your identification has been saved in \/root\/.ssh\/id_rsa.<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">Your public key has been saved in \/root\/.ssh\/id_rsa.pub.<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">The key fingerprint is:<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">ac:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">64<\/span>:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">7f<\/span>:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">6<\/span>c:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">54<\/span>:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">41<\/span>:a1:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">80<\/span>:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">4<\/span>a:ab:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">79<\/span>:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">9<\/span>a:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">6<\/span>d:d1:ef:e0 root@xuegod63.cn<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">The key&#8217;s randomart image is:<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">+&#8211;[ RSA 2048]&#8212;-+<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">| \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0.. \u00a0.+. \u00a0|<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">| \u00a0\u00a0\u00a0. . \u00a0. . . \u00a0|<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">| \u00a0\u00a0. o \u00a0\u00a0\u00a0. . \u00a0|<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">| \u00a0\u00a0\u00a0o \u00a0. \u00a0\u00a0. \u00a0|<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">| \u00a0\u00a0o .o S . \u00a0|<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">| \u00a0o oo.o o \u00a0|<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">| \u00a0\u00a0= .o.. + \u00a0|<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">| \u00a0o o. ..o \u00a0 |<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">| \u00a0\u00a0. \u00a0E.. \u00a0 |<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u67e5\u770b\u751f\u6210\u7684\u516c\u94a5\u548c\u79c1\u94a5\uff1a<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># ls \/root\/.ssh\/<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">id_rsa\uff08\u79c1\u94a5\uff09\u00a0\u00a0id_rsa.pub\uff08\u516c\u94a5\uff09<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">known_hosts<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5c06\u516c\u94a5\u4e0a\u4f20\u5230xuegod64 \u6570\u636e\u6e90<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u65b9\u6cd51\uff1a<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"> [root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># ssh-copy-id root@192.168.1.64<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u76f8\u5f53\u4e8e\u4f60\u6267\u884c\u4e86\uff1a<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u65b9\u6cd52\uff1a<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># scp \/root\/.ssh\/id_rsa.pub \u00a0 root@192.168.1.64:\/root\/.ssh\/authorized_keys<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u67e5\u770b\uff1a<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># ls \/root\/.ssh\/<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">authorized_keys \u00a0known_hosts<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u6d4b\u8bd5\uff0c\u4e0d\u8f93\u5bc6\u7801\u76f4\u63a5\u767b\u5f55\uff1a<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># ssh root@192.168.1.64<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[rget1@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># exit<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u6d4b\u8bd5\uff0c\u4e0d\u8f93\u5bc6\u7801\u76f4\u63a5\u5907\u4efd\uff1a<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># rm -rf \/web-back<span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">\/*<\/span><\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]# rsync -azP --delete \/var\/www\/html\/ \u00a0root@192.168.1.64:\/web-back<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">ctrl+r\u53ef\u4ee5\u641c\u7d22\u5386\u53f2\u547d\u4ee4\u5feb\u901f\u8c03\u5230\u524d\u53f0\u6267\u884c<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"margin: 10px 0%; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 100%; vertical-align: top; border-width: 1px; border-style: solid none; border-color: #3e3e3e; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"align-items: center; display: flex; margin: -3px 0%; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; flex: 0 0 auto; border-width: 0px 0px 0px 2px; border-style: none none none solid; border-color: #3e3e3e; overflow: hidden; box-sizing: border-box;\">\n<section style=\"text-align: center; margin: 0px 0%; transform: translate3d(-10px, 0px, 0px); -webkit-transform: translate3d(-10px, 0px, 0px); -moz-transform: translate3d(-10px, 0px, 0px); -o-transform: translate3d(-10px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; min-width: 10%; max-width: 100%; vertical-align: top; transform: matrix(1, 0, -0.2, 1, 0, 0); -webkit-transform: matrix(1, 0, -0.2, 1, 0, 0); -moz-transform: matrix(1, 0, -0.2, 1, 0, 0); -o-transform: matrix(1, 0, -0.2, 1, 0, 0); padding: 6px 10px 6px 20px; background-color: #000000; box-sizing: border-box; border: 2px solid #3e3e3e;\">\n<section style=\"line-height: 1; letter-spacing: 0px; padding: 0px; color: #ffffff; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">No.2<\/strong><\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; flex: 1 1 auto; border-width: 0px; box-sizing: border-box;\">\n<section style=\"line-height: 1; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\u00a0 Rsync\u670d\u52a1\u5b89\u88c5<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; flex: 0 0 auto; overflow: hidden; box-sizing: border-box; border: 0px none #3e3e3e;\">\n<section style=\"text-align: center; margin: -2px 0%; transform: translate3d(10px, 0px, 0px); -webkit-transform: translate3d(10px, 0px, 0px); -moz-transform: translate3d(10px, 0px, 0px); -o-transform: translate3d(10px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; min-width: 10%; max-width: 100%; vertical-align: top; transform: matrix(1, 0, -0.2, 1, 0, 0); -webkit-transform: matrix(1, 0, -0.2, 1, 0, 0); -moz-transform: matrix(1, 0, -0.2, 1, 0, 0); -o-transform: matrix(1, 0, -0.2, 1, 0, 0); padding: 6px 10px; background-color: #ffffff; box-sizing: border-box; border: 2px solid #3e3e3e;\">\n<section style=\"line-height: 1; letter-spacing: 0px; padding: 0px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5b9e\u9a8c\u62d3\u6251\uff1a<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">xuegod63\uff08\u6e90\u4e3b\u673a192.168.1.63\uff09<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">xuegod64\uff08\u76ee\u6807\u4e3b\u673a 192.168.1.64\uff09<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u9700\u8981\u5173\u95edselinux\uff0c\u5426\u5219\u5373\u4f7f\u521b\u5efa\/etc\/rsyncd.conf\u6587\u4ef6\u4e4b\u540e\u53bb\u542f\u52a8\u670d\u52a1\u4e5f\u4e0d\u4f1a\u751f\u6548\u3002<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># setenforce 0<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\">#yum \u00a0-y \u00a0install rsync<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\">#systemctl start rsyncd<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># netstat -antup | grep 873 \u00a0#\u67e5\u770b873\u7aef\u53e3\u662f\u5426\u76d1\u542c\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">tcp \u00a0 \u00a0 <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0<\/span> \u00a0 \u00a0 <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0<\/span> <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0.0<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.0<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.0<\/span>:<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">873<\/span> \u00a0 \u00a0 \u00a0 <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0.0<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.0<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.0<\/span>:* \u00a0 \u00a0 \u00a0 \u00a0LISTEN \u00a0 \u00a0 \u00a0<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">43447<\/span>\/rsync \u00a0 \u00a0 \u00a0 \u00a0 <\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">tcp6 \u00a0 \u00a0<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0<\/span> \u00a0 \u00a0 <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0<\/span> :::<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">873<\/span> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 :::* \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0LISTEN \u00a0 \u00a0 \u00a0<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">43447<\/span>\/rsync<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"height: auto; box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 10px 0% 15px; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 84.3137 84.3137 0%; height: auto; border-radius: 12px; overflow: hidden; padding: 5px 10px; background-color: #000000; align-self: center; margin: 0px; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"color: #ffffff; letter-spacing: 0px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">2.1 \u00a0rsync\u547d\u4ee4\u9009\u9879<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 10 10 0%; height: auto; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 0px 0%; text-align: center; justify-content: center; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 100 100 0%; height: auto; align-self: center; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"margin: 0.5em 0px; box-sizing: border-box;\">\n<section style=\"background-color: #3e3e3e; height: 1px; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 0 0 0%; height: auto; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"text-align: right; justify-content: flex-end; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 22px; height: 22px; vertical-align: top; overflow: hidden; border-radius: 50%; background-color: rgba(255, 255, 255, 0); line-height: 0; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"transform: rotateZ(315deg); -webkit-transform: rotateZ(315deg); -moz-transform: rotateZ(315deg); -o-transform: rotateZ(315deg); box-sizing: border-box;\">\n<section style=\"text-align: center; justify-content: center; margin: 9px 0% 0px; transform: translate3d(3px, 0px, 0px); -webkit-transform: translate3d(3px, 0px, 0px); -moz-transform: translate3d(3px, 0px, 0px); -o-transform: translate3d(3px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 8px; height: 8px; vertical-align: top; overflow: hidden; border-style: solid none none solid; border-width: 1px; border-color: #3e3e3e #ffffff #ffffff #3e3e3e; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">-a\uff1a<\/strong>&#8211;archive archive mode\u00a0\u6743\u9650\u4fdd\u5b58\u6a21\u5f0f\uff0c\u76f8\u5f53\u4e8e\u00a0-rlptgoD\u00a0\u53c2\u6570\uff0c\u5b58\u6863\uff0c\u9012\u5f52\uff0c\u4fdd\u6301\u5c5e\u6027\u7b49\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">-z\uff1a<\/strong>&#8211;compress\u00a0\u538b\u7f29\u6a21\u5f0f\uff0c\u5f53\u8d44\u6599\u5728\u4f20\u9001\u5230\u76ee\u7684\u7aef\u8fdb\u884c\u6863\u6848\u538b\u7f29\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">-H\uff1a<\/strong>&#8211;hard-links\u00a0\u4fdd\u7559\u786c\u94fe\u63a5\u6587\u4ef6\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">&#8211;version\uff1a\u8f93\u51farsync\u7248\u672c\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">-v\uff1a<\/strong>&#8211;verbose\u00a0\u590d\u6742\u7684\u8f93\u51fa\u4fe1\u606f\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">-u\uff1a<\/strong>&#8211;update\u00a0\u4ec5\u4ec5\u8fdb\u884c\u66f4\u65b0\uff0c\u4e5f\u5c31\u662f\u8df3\u8fc7\u5df2\u7ecf\u5b58\u5728\u7684\u76ee\u6807\u4f4d\u7f6e\uff0c\u5e76\u4e14\u6587\u4ef6\u65f6\u95f4\u8981\u665a\u4e8e\u8981\u5907\u4efd\u7684\u6587\u4ef6\uff0c\u4e0d\u8986\u76d6\u65b0\u7684\u6587\u4ef6\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">&#8211;port=PORT\uff1a<\/strong>\u5b9a\u4e49rsyncd(daemon)\u8981\u8fd0\u884c\u7684port(\u9884\u8bbe\u4e3atcp 873)\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">&#8211;delete\uff1a<\/strong>\u5220\u9664\u90a3\u4e9b\u76ee\u6807\u4f4d\u7f6e\u6709\u7684\u6587\u4ef6\u800c\u5907\u4efd\u6e90\u6ca1\u6709\u7684\u6587\u4ef6\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">&#8211;password-file=FILE\u00a0\uff1a<\/strong>\u4ece\u00a0\u6307\u5b9a\u5bc6\u7801\u6587\u4ef6\u4e2d\u83b7\u53d6\u5bc6\u7801\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">&#8211;bwlimit=KBPS\uff1a<\/strong>\u9650\u5236\u00a0I\/O\u00a0\u5e26\u5bbd\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">&#8211;filter \u201c-filename\u201d\uff1a<\/strong>\u9700\u8981\u8fc7\u6ee4\u7684\u6587\u4ef6\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">&#8211;exclude=filname\uff1a<\/strong>\u9700\u8981\u8fc7\u6ee4\u7684\u6587\u4ef6\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">&#8211;progress\uff1a<\/strong>\u663e\u793a\u5907\u4efd\u8fc7\u7a0b\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u901a\u5e38\u5e38\u7528\u7684\u9009\u9879 \u2013avz<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"height: auto; box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 10px 0% 15px; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 84.3137 84.3137 0%; height: auto; border-radius: 12px; overflow: hidden; padding: 5px 10px; background-color: #000000; align-self: center; margin: 0px; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"color: #ffffff; letter-spacing: 0px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">2.2 \u00a0\u4f7f\u7528rsync\u5907\u4efd\u6570\u636e\u4fdd\u6301\u539f\u6709\u6587\u4ef6\u6743\u9650<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 10 10 0%; height: auto; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 0px 0%; text-align: center; justify-content: center; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 100 100 0%; height: auto; align-self: center; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"margin: 0.5em 0px; box-sizing: border-box;\">\n<section style=\"background-color: #3e3e3e; height: 1px; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 0 0 0%; height: auto; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"text-align: right; justify-content: flex-end; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 22px; height: 22px; vertical-align: top; overflow: hidden; border-radius: 50%; background-color: rgba(255, 255, 255, 0); line-height: 0; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"transform: rotateZ(315deg); -webkit-transform: rotateZ(315deg); -moz-transform: rotateZ(315deg); -o-transform: rotateZ(315deg); box-sizing: border-box;\">\n<section style=\"text-align: center; justify-content: center; margin: 9px 0% 0px; transform: translate3d(3px, 0px, 0px); -webkit-transform: translate3d(3px, 0px, 0px); -moz-transform: translate3d(3px, 0px, 0px); -o-transform: translate3d(3px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 8px; height: 8px; vertical-align: top; overflow: hidden; border-style: solid none none solid; border-width: 1px; border-color: #3e3e3e #ffffff #ffffff #3e3e3e; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5bf9xuegod63\u7f51\u7ad9\u6839\u76ee\u5f55\u7684\/var\/www\/html\u76ee\u5f55\u5907\u4efd\u5230xuegod64\u7684\/web-back \u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u670d\u52a1\u5668\uff1axuegod63<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5ba2\u6237\u7aef\uff1axuegod64<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">1.\u5efa\u7acb\u6d4b\u8bd5\u7528\u6237\uff08\u4e24\u53f0\u4e3b\u673a\u90fd\u9700\u8981\u64cd\u4f5c\uff09\uff1a<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># useradd rget1 &amp;&amp; echo <span class=\"code-snippet__meta-string\" style=\"box-sizing: border-box;\">\"123456\"<\/span> |passwd --stdin rget1<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u66f4\u6539\u7528\u6237 rget1 \u7684\u5bc6\u7801 \u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">passwd\uff1a\u6240\u6709\u7684\u8eab\u4efd\u9a8c\u8bc1\u4ee4\u724c\u5df2\u7ecf\u6210\u529f\u66f4\u65b0\u3002<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># useradd rget1 &amp;&amp; echo <span class=\"code-snippet__meta-string\" style=\"box-sizing: border-box;\">\"123456\"<\/span> |passwd --stdin rget1<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u66f4\u6539\u7528\u6237 rget1 \u7684\u5bc6\u7801 \u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">passwd\uff1a\u6240\u6709\u7684\u8eab\u4efd\u9a8c\u8bc1\u4ee4\u724c\u5df2\u7ecf\u6210\u529f\u66f4\u65b0\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">2.\u5bf9\u76ee\u5f55\u8d4b\u4e88ACL\u6743\u9650\uff1a<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># mkdir \/var\/www\/html\/ -p \u00a0#\u521b\u5efa\u76ee\u5f55\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># setfacl -R -m user:rget1:rwx \/var\/www\/html\/ \u00a0<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># getfacl \u00a0\/var\/www\/html<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">getfacl: Removing leading <span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">'\/'<\/span> from absolute path names<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># file: var\/www\/html<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># owner: root<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># group: root<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">user::rwx<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">user:rget1:rwx<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">group::r-x<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">mask::rwx<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">other::r-x<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">3.\u521b\u5efa\u6d4b\u8bd5\u6570\u636e\uff1a<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># cp -r \/boot<span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">\/* \/var\/www\/html\/ \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">#\u590d\u5236\/boot\/\u76ee\u5f55\u4e0b\u6240\u6709\u5185\u5bb9\u5230 \u00a0\/var\/www\/html\/\u76ee\u5f55\u4e0b\u3002<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">4.\u670d\u52a1\u7aef\u4e0a\u64cd\u4f5c\uff1a<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># mkdir \/web-back \u00a0#\u521b\u5efa\u5b58\u653e\u6570\u636e\u76ee\u5f55\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># chown rget1:rget1 -R \/web-back\/<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">#\u4fee\u6539\u76ee\u5f55\u5c5e\u4e3b\u3001\u5c5e\u7ec4\u4e3arget1\u7528\u6237\u3002<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># rsync -avz \/var\/www\/html\/ rget1@192.168.1.64:\/web-back\/<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">The authenticity of host &#8216;192.168.0.64 (192.168.0.64)&#8217; can&#8217;t be established.<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">ECDSA key fingerprint is<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">SHA256:<\/strong>NN12lfXOanqEZuFwR2k6PEtsUyliHoiMPXgM2RQ0n7E.<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">ECDSA key fingerprint is MD5:da:20:18:a8:41:bb:33:0e:8f:87:2c:8a:33:fe:ea:3a.<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">Are you sure you want to continue connecting (yes\/no)? yes \u00a0#\u8f93\u5165yes\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">Warning: <\/strong>Permanently added &#8216;192.168.0.64&#8217; (ECDSA) to the list of known hosts.<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">rget1@192.168.0.64&#8217;s password: \u00a0 #\u8f93\u5165rget1\u7528\u6237\u5bc6\u7801\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">sending incremental file list<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">.\/<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">sent 29 bytes \u00a0received 15 bytes \u00a03.03 bytes\/sec<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">total size is 0 \u00a0speedup is 0.00<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"height: auto; box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 10px 0% 15px; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 84.3137 84.3137 0%; height: auto; border-radius: 12px; overflow: hidden; padding: 5px 10px; background-color: #000000; align-self: center; margin: 0px; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"color: #ffffff; letter-spacing: 0px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">2.3 \u00a0\u4f7f\u7528\u975e\u7cfb\u7edf\u7528\u6237\u5907\u4efd\u6570\u636e<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 10 10 0%; height: auto; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 0px 0%; text-align: center; justify-content: center; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 100 100 0%; height: auto; align-self: center; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"margin: 0.5em 0px; box-sizing: border-box;\">\n<section style=\"background-color: #3e3e3e; height: 1px; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 0 0 0%; height: auto; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"text-align: right; justify-content: flex-end; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 22px; height: 22px; vertical-align: top; overflow: hidden; border-radius: 50%; background-color: rgba(255, 255, 255, 0); line-height: 0; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"transform: rotateZ(315deg); -webkit-transform: rotateZ(315deg); -moz-transform: rotateZ(315deg); -o-transform: rotateZ(315deg); box-sizing: border-box;\">\n<section style=\"text-align: center; justify-content: center; margin: 9px 0% 0px; transform: translate3d(3px, 0px, 0px); -webkit-transform: translate3d(3px, 0px, 0px); -moz-transform: translate3d(3px, 0px, 0px); -o-transform: translate3d(3px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 8px; height: 8px; vertical-align: top; overflow: hidden; border-style: solid none none solid; border-width: 1px; border-color: #3e3e3e #ffffff #ffffff #3e3e3e; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5b9e\u9a8c\u5f00\u59cb\u4e4b\u524d\u9996\u5148\u5ba2\u6237\u7aef\u670d\u52a1\u5668\u7aef\u5173\u95ed\u9632\u706b\u5899firewalld\u5426\u5219\u5b9e\u9a8c\u5931\u8d25\uff1a<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># systemctl stop firewalld.service<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># systemctl stop firewalld.service<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u4f7f\u7528\u975e\u7cfb\u7edf\u7528\u6237\u8fdb\u5165\u5907\u4efd\u6570\u636e\uff0c\u4f9d\u9760\u7cfb\u7edf\u4e2d\u7684rsync\u914d\u7f6e\u6587\u4ef6\/etc\/rsyncd.conf\u8fdb\u884c\u5907\u4efd\u6570\u636e\uff0c\u5e76\u521b\u5efa\u5907\u4efd\u8d26\u6237\uff0c\u6700\u7ec8\u628arsync\u4ee5deamon\u65b9\u5f0f\u8fd0\u884c\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">1.rsyncd.conf\u914d\u7f6e\u6587\u4ef6\uff1a<\/strong><\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u914d\u7f6e\u6587\u4ef6\u5206\u4e3a\u4e24\u90e8\u5206\uff1a<span style=\"color: #8ec965; box-sizing: border-box;\">\u5168\u5c40\u53c2\u6570\u3001\u6a21\u5757\u53c2\u6570<\/span>\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">\u5168\u5c40\u53c2\u6570\uff1a<\/span>\u5bf9rsync\u670d\u52a1\u5668\u751f\u6548\uff0c\u5982\u679c\u6a21\u5757\u53c2\u6570\u548c\u5168\u5c40\u53c2\u6570\u51b2\u7a81\uff0c\u51b2\u7a81\u7684\u5730\u65b9\u6a21\u5757\u53c2\u6570\u6700\u7ec8\u751f\u6548\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u6a21\u5757\u53c2\u6570\uff1a\u5b9a\u4e49\u9700\u8981\u901a\u8fc7rsync\u8f93\u51fa\u7684\u76ee\u5f55\u5b9a\u4e49\u7684\u53c2\u6570\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\uff081\uff09\u5e38\u89c1\u7684\u5168\u5c40\u53c2\u6570\uff1a<\/strong><\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">port\uff1a<\/span>\u6307\u5b9a\u540e\u53f0\u7a0b\u5e8f\u4f7f\u7528\u7684\u7aef\u53e3\u53f7\uff0c\u9ed8\u8ba4\u4e3a873\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">uid\uff1a<\/span>\u8be5\u9009\u9879\u6307\u5b9a\u5f53\u8be5\u6a21\u5757\u4f20\u8f93\u6587\u4ef6\u65f6\u5b88\u62a4\u8fdb\u7a0b\u5e94\u8be5\u5177\u6709\u7684uid\uff0c\u914d\u5408gid\u9009\u9879\u4f7f\u7528\u53ef\u4ee5\u786e\u5b9a\u54ea\u4e9b\u53ef\u4ee5\u8bbf\u95ee\u600e\u4e48\u6837\u7684\u6587\u4ef6\u6743\u9650\uff0c\u9ed8\u8ba4\u503c\u662f&#8221; nobody&#8221;\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">gid\uff1a<\/span>\u8be5\u9009\u9879\u6307\u5b9a\u5f53\u8be5\u6a21\u5757\u4f20\u8f93\u6587\u4ef6\u65f6\u5b88\u62a4\u8fdb\u7a0b\u5e94\u8be5\u5177\u6709\u7684gid\u3002\u9ed8\u8ba4\u503c\u4e3a&#8221; nobody&#8221;\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">max connections\uff1a<\/span>\u6307\u5b9a\u8be5\u6a21\u5757\u7684\u6700\u5927\u5e76\u53d1\u8fde\u63a5\u6570\u91cf\u4ee5\u4fdd\u62a4\u670d\u52a1\u5668\uff0c\u8d85\u8fc7\u9650\u5236\u7684\u8fde\u63a5\u8bf7\u6c42\u5c06\u88ab\u544a\u77e5\u968f\u540e\u518d\u8bd5\u3002\u9ed8\u8ba4\u503c\u662f0\uff0c\u4e5f\u5c31\u662f\u6ca1\u6709\u9650\u5236\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">lock file\uff1a<\/span>\u6307\u5b9a\u652f\u6301max connections\u53c2\u6570\u7684\u9501\u6587\u4ef6\uff0c\u9ed8\u8ba4\u503c\u662f\/var\/run\/rsyncd.lock\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">motd file\uff1a<\/span>&#8221; motd file&#8221;\u53c2\u6570\u7528\u6765\u6307\u5b9a\u4e00\u4e2a\u6d88\u606f\u6587\u4ef6\uff0c\u5f53\u5ba2\u6237\u8fde\u63a5\u670d\u52a1\u5668\u65f6\u8be5\u6587\u4ef6\u7684\u5185\u5bb9\u663e\u793a\u7ed9\u5ba2\u6237\uff0c\u9ed8\u8ba4\u662f\u6ca1\u6709motd\u6587\u4ef6\u7684\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">log file\uff1a<\/span>&#8221; log file&#8221;\u6307\u5b9arsync\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u800c\u4e0d\u5c06\u65e5\u5fd7\u53d1\u9001\u7ed9syslog\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">pid file\uff1a<\/span>\u6307\u5b9arsync\u7684pid\u6587\u4ef6\uff0c\u901a\u5e38\u6307\u5b9a\u4e3a\u201c\/var\/run\/rsyncd.pid\u201d\uff0c\u5b58\u653e\u8fdb\u7a0bID\u7684\u6587\u4ef6\u4f4d\u7f6e\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">hosts allow\uff1a<\/span>\u5355\u4e2aIP\u5730\u5740\u6216\u7f51\u7edc\u5730\u5740\uff0c\u5141\u8bb8\u8bbf\u95ee\u7684\u5ba2\u6237\u673a\u5730\u5740\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\uff082\uff09\u5e38\u89c1\u7684\u6a21\u5757\u53c2\u6570\uff1a<\/strong><\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u4e3b\u8981\u662f\u5b9a\u4e49\u670d\u52a1\u5668\u54ea\u4e2a\u8981\u88ab\u540c\u6b65\u8f93\u51fa\uff0c\u5176\u683c\u5f0f\u5fc5\u987b\u4e3a\u201c\u00a0[\u00a0\u5171\u4eab\u6a21\u5757\u540d\u00a0]\u201d\u00a0\u5f62\u5f0f\uff0c\u8fd9\u4e2a\u540d\u5b57\u5c31\u662f\u5728\u00a0rsync\u00a0\u5ba2\u6237\u7aef\u770b\u5230\u7684\u540d\u5b57\uff0c\u5176\u5b9e\u5f88\u50cf\u00a0samba\u00a0\u670d\u52a1\u5668\u63d0\u4f9b\u7684\u5171\u4eab\u540d\u3002\u800c\u670d\u52a1\u5668\u771f\u6b63\u540c\u6b65\u7684\u6570\u636e\u662f\u901a\u8fc7\u00a0path\u00a0\u6765\u6307\u5b9a\u7684\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">Comment\uff1a<\/span>\u7ed9\u6a21\u5757\u6307\u5b9a\u4e00\u4e2a\u63cf\u8ff0\uff0c\u8be5\u63cf\u8ff0\u8fde\u540c\u6a21\u5757\u540d\u5728\u5ba2\u6237\u8fde\u63a5\u5f97\u5230\u6a21\u5757\u5217\u8868\u65f6\u663e\u793a\u7ed9\u5ba2\u6237\u3002\u9ed8\u8ba4\u6ca1\u6709\u63cf\u8ff0\u5b9a\u4e49\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">path\uff1a<\/span>\u6307\u5b9a\u8be5\u6a21\u5757\u7684\u4f9b\u5907\u4efd\u7684\u76ee\u5f55\u6811\u8def\u5f84\uff0c\u8be5\u53c2\u6570\u662f\u5fc5\u987b\u6307\u5b9a\u7684\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">read\u00a0only\uff1a<\/span>\u662f\u5426\u4e3a\u53ea\u8bfb\u6a21\u5f0ftrue\/false\u3002true\u65e0\u6cd5\u4e0a\u4f20\u5199\u5165\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">exclude\uff1a<\/span>\u7528\u6765\u6307\u5b9a\u591a\u4e2a\u7531\u7a7a\u683c\u9694\u5f00\u7684\u591a\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55(\u76f8\u5bf9\u8def\u5f84)\uff0c\u5c06\u5176\u6dfb\u52a0\u5230exclude\u5217\u8868\u4e2d\u3002\u8fd9\u7b49\u540c\u4e8e\u5728\u5ba2\u6237\u7aef\u547d\u4ee4\u4e2d\u4f7f\u7528\u2015exclude\u6216&#8212;-filter\u6765\u6307\u5b9a\u67d0\u4e9b\u6587\u4ef6\u6216\u76ee\u5f55\u4e0d\u4e0b\u8f7d\u6216\u4e0a\u4f20\uff08\u65e2\u4e0d\u53ef\u8bbf\u95ee\uff09<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">exclude from\uff1a<\/span>\u6307\u5b9a\u4e00\u4e2a\u5305\u542bexclude\u6a21\u5f0f\u7684\u5b9a\u4e49\u7684\u6587\u4ef6\u540d\uff0c\u670d\u52a1\u5668\u4ece\u8be5\u6587\u4ef6\u4e2d\u8bfb\u53d6exclude\u5217\u8868\u5b9a\u4e49\uff0c\u6bcf\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\u9700\u8981\u5360\u7528\u4e00\u884c<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">include\uff1a<\/span>\u7528\u6765\u6307\u5b9a\u4e0d\u6392\u9664\u7b26\u5408\u8981\u6c42\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u3002\u8fd9\u7b49\u540c\u4e8e\u5728\u5ba2\u6237\u7aef\u547d\u4ee4\u4e2d\u4f7f\u7528&#8211;include\u6765\u6307\u5b9a\u6a21\u5f0f\uff0c\u7ed3\u5408include\u548cexclude\u53ef\u4ee5\u5b9a\u4e49\u590d\u6742\u7684exclude\/include\u89c4\u5219\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">include from\uff1a<\/span>\u6307\u5b9a\u4e00\u4e2a\u5305\u542binclude\u6a21\u5f0f\u7684\u5b9a\u4e49\u7684\u6587\u4ef6\u540d\uff0c\u670d\u52a1\u5668\u4ece\u8be5\u6587\u4ef6\u4e2d\u8bfb\u53d6include\u5217\u8868\u5b9a\u4e49\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">auth users\uff1a<\/span>\u8be5\u9009\u9879\u6307\u5b9a\u7531\u7a7a\u683c\u6216\u9017\u53f7\u5206\u9694\u7684\u7528\u6237\u540d\u5217\u8868\uff0c\u53ea\u6709\u8fd9\u4e9b\u7528\u6237\u624d\u5141\u8bb8\u8fde\u63a5\u8be5\u6a21\u5757\u3002\u8fd9\u91cc\u7684\u7528\u6237\u548c\u7cfb\u7edf\u7528\u6237\u6ca1\u6709\u4efb\u4f55\u5173\u7cfb\u3002\u5982\u679c&#8221; auth users&#8221;\u88ab\u8bbe\u7f6e\uff0c\u90a3\u4e48\u5ba2\u6237\u7aef\u53d1\u51fa\u5bf9\u8be5\u6a21\u5757\u7684\u8fde\u63a5\u8bf7\u6c42\u4ee5\u540e\u4f1a\u88abrsync\u8bf7\u6c42challenged\u8fdb\u884c\u9a8c\u8bc1\u8eab\u4efd\u8fd9\u91cc\u4f7f\u7528\u7684challenge\/response\u8ba4\u8bc1\u534f\u8bae\u3002\u7528\u6237\u7684\u540d\u548c\u5bc6\u7801\u4ee5\u660e\u6587\u65b9\u5f0f\u5b58\u653e\u5728&#8221; secrets file&#8221;\u9009\u9879\u6307\u5b9a\u7684\u6587\u4ef6\u4e2d\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u65e0\u9700\u5bc6\u7801\u5c31\u53ef\u4ee5\u8fde\u63a5\u6a21\u5757\uff08\u4e5f\u5c31\u662f\u533f\u540d\u65b9\u5f0f\uff09\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">secrets file\uff1a<\/span>\u8be5\u9009\u9879\u6307\u5b9a\u4e00\u4e2a\u5305\u542b\u5b9a\u4e49\u7528\u6237\u540d:\u5bc6\u7801\u5bf9\u5e94\u7684\u6587\u4ef6\u3002\u53ea\u6709\u5728&#8221; auth users&#8221;\u88ab\u5b9a\u4e49\u65f6\uff0c\u8be5\u6587\u4ef6\u624d\u6709\u4f5c\u7528\u3002\u6587\u4ef6\u6bcf\u884c\u5305\u542b\u4e00\u4e2ausername:passwd\u5bf9\u3002\u4e00\u822c\u6765\u8bf4\u5bc6\u7801\u6700\u597d\u4e0d\u8981\u8d85\u8fc78\u4e2a\u5b57\u7b26\u3002\u6ca1\u6709\u9ed8\u8ba4\u7684secures file\u540d\uff0c\u6ce8\u610f\uff1a\u8be5\u6587\u4ef6\u7684\u6743\u9650\u4e00\u5b9a\u8981\u662f600\uff0c\u5426\u5219\u5ba2\u6237\u7aef\u5c06\u4e0d\u80fd\u8fde\u63a5\u670d\u52a1\u5668\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">hosts allow\uff1a<\/span>\u6307\u5b9a\u54ea\u4e9bIP\u7684\u5ba2\u6237\u5141\u8bb8\u8fde\u63a5\u8be5\u6a21\u5757\u3002\u5b9a\u4e49\u53ef\u4ee5\u662f\u4ee5\u4e0b\u5f62\u5f0f\uff1a<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5355\u4e2aIP\u5730\u5740\uff0c\u4f8b\u5982\uff1a192.167.0.1\uff0c\u591a\u4e2aIP\u6216\u7f51\u6bb5\u9700\u8981\u7528\u7a7a\u683c\u9694\u5f00\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u6574\u4e2a\u7f51\u6bb5\uff0c\u4f8b\u5982\uff1a192.168.0.0\/24\uff0c\u4e5f\u53ef\u4ee5\u4e66\u5199\u4e3a192.168.0.0\/255.255.255.0<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u201c*\u201d\u5219\u8868\u793a\u6240\u6709\uff0c\u9ed8\u8ba4\u662f\u5141\u8bb8\u6240\u6709\u4e3b\u673a\u8fde\u63a5\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">hosts deny\uff1a<\/span>\u6307\u5b9a\u4e0d\u5141\u8bb8\u8fde\u63a5rsync\u670d\u52a1\u5668\u7684\u673a\u5668\uff0c\u53ef\u4ee5\u4f7f\u7528hosts allow\u7684\u5b9a\u4e49\u65b9\u5f0f\u6765\u8fdb\u884c\u5b9a\u4e49\u3002\u9ed8\u8ba4\u662f\u6ca1\u6709hosts deny\u5b9a\u4e49\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">list\uff1a<\/span>\u8be5\u9009\u9879\u8bbe\u5b9a\u5f53\u5ba2\u6237\u8bf7\u6c42\u53ef\u4ee5\u4f7f\u7528\u7684\u6a21\u5757\u5217\u8868\u65f6\uff0c\u8be5\u6a21\u5757\u662f\u5426\u5e94\u8be5\u88ab\u5217\u51fa\u3002\u5982\u679c\u8bbe\u7f6e\u8be5\u9009\u9879\u4e3afalse\uff0c\u53ef\u4ee5\u521b\u5efa\u9690\u85cf\u7684\u6a21\u5757\u3002\u9ed8\u8ba4\u503c\u662ftrue\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"color: rgba(242, 8, 23, 0.92); box-sizing: border-box;\">timeout\uff1a<\/span>\u901a\u8fc7\u8be5\u9009\u9879\u53ef\u4ee5\u8986\u76d6\u5ba2\u6237\u6307\u5b9a\u7684IP\u8d85\u65f6\u65f6\u95f4\u3002\u901a\u8fc7\u8be5\u9009\u9879\u53ef\u4ee5\u786e\u4fddrsync\u670d\u52a1\u5668\u4e0d\u4f1a\u6c38\u8fdc\u7b49\u5f85\u4e00\u4e2a\u5d29\u6e83\u7684\u5ba2\u6237\u7aef\u3002\u8d85\u65f6\u5355\u4f4d\u4e3a\u79d2\u949f\uff0c0\u8868\u793a\u6ca1\u6709\u8d85\u65f6\u5b9a\u4e49\uff0c\u8fd9\u4e5f\u662f\u9ed8\u8ba4\u503c\u3002\u5bf9\u4e8e\u533f\u540drsync\u670d\u52a1\u5668\u6765\u8bf4\uff0c\u4e00\u4e2a\u7406\u60f3\u7684\u6570\u5b57\u662f600\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5b9e\u6218\uff1a\u4f7f\u7528rsync\u670d\u52a1\u8fdb\u884c\u6570\u636e\u540c\u6b65\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u7528\u914d\u7f6e\u6587\u4ef6\u5b9a\u4e49\u76ee\u5f55\u8f93\u51fa\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u670d\u52a1\u5668\uff1axuegod64<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5ba2\u6237\u7aef\uff1axuegod63<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># vim \/etc\/rsyncd.conf \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0#\u6587\u4ef6\u4e0d\u5b58\u5728\uff0c\u9700\u8981\u624b\u52a8\u521b\u5efa\u3002<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u6ce8\u610f\uff1a #\u4f1a\u51fa\u73b0\u56e0\u6ce8\u91ca\u4e0d\u517c\u5bb9\u7684\u95ee\u9898\u800c\u5bfc\u81f4\u63a8\u6570\u636e\u65f6\u51fa\u73b0\u62a5\u9519\uff0c\u914d\u7f6e\u6587\u4ef6\u9700\u53d6\u6d88\u6ce8\u91ca\u6216\u8005\u6ce8\u91ca\u8fdb\u884c\u6362\u884c\u5904\u7406\u3002<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">uid = root \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0#\u8fd0\u884c\u8fdb\u7a0b\u7684\u8eab\u4efd\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">gid = root \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0#\u8fd0\u884c\u8fdb\u7a0b\u7684\u7ec4\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">address =<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">192.168<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.1<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.64<\/span> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 #\u76d1\u542cIP\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">port =<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">873<\/span> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 #\u76d1\u542c\u7aef\u53e3\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">hosts allow =<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">192.168<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.1<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.0<\/span>\/<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">24<\/span> \u00a0 \u00a0 \u00a0 #\u5141\u8bb8\u540c\u6b65\u5ba2\u6237\u7aef\u7684IP\u5730\u5740\uff0c\u53ef\u4ee5\u662f\u7f51\u6bb5\uff0c\u6216\u8005\u7528*\u8868\u793a\u6240\u6709 <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">192.168<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.1<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.0<\/span>\/<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">24<\/span>\u6216<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">192.168<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.1<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.0<\/span>\/<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">255.255<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.255<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.0<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">use chroot = yes \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0#\u662f\u5426\u56da\u7262\uff0c\u9501\u5b9a\u5bb6\u76ee\u5f55\uff0crsync\u88ab\u9ed1\u4e4b\u540e\uff0c\u9ed1\u5ba2\u65e0\u6cd5\u518drsync\u8fd0\u884c\u7684\u5bb6\u76ee\u5f55\u4e4b\u5916\u521b\u5efa\u6587\u4ef6\uff0c\u9009\u9879\u8bbe\u7f6e\u4e3ayes\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">max connections =<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">5<\/span> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0#\u6700\u5927\u8fde\u63a5\u6570\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">pid file =\/var\/run\/rsyncd.pid \u00a0 \u00a0 #\u8fdb\u7a0bPID\uff0c\u81ea\u52a8\u751f\u6210\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">lock file =\/var\/run\/rsync.lock \u00a0 \u00a0#\u6307max connectios\u53c2\u6570\u7684\u9501\u6587\u4ef6\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">log<\/span> file =\/var\/<span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">log<\/span>\/rsyncd.<span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">log<\/span> \u00a0 \u00a0 #\u65e5\u5fd7\u6587\u4ef6\u4f4d\u7f6e\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">motd file =\/etc\/rsyncd.motd \u00a0 \u00a0 \u00a0 #\u5ba2\u6237\u7aef\u767b\u9646\u4e4b\u540e\u5f39\u51fa\u7684\u6d88\u606f\uff0c\u9700\u8981\u521b\u5efa\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[wwwroot] \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 #\u5171\u4eab\u6a21\u5757\u540d\u79f0\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">path = \/web-back\/ \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 #\u8def\u5f84\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">comment = used <span class=\"code-snippet__keyword\" style=\"box-sizing: border-box;\">for<\/span> web-data root \u00a0#\u63cf\u8ff0\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">read only = <span class=\"code-snippet__literal\" style=\"box-sizing: border-box;\">false<\/span> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 #\u53ea\u8bfb\u6743\u9650\u4e3a\u5047\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">list<\/span> = yes \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0#\u662f\u5426\u5141\u8bb8\u67e5\u770b\u6a21\u5757\u4fe1\u606f\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">auth users = rsyncuser \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0#\u5907\u4efd\u7684\u7528\u6237\uff0c\u548c\u7cfb\u7edf\u7528\u6237\u65e0\u5173\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">secrets file =\/etc\/rsync.passwd \u00a0 #\u5b58\u653e\u7528\u6237\u7684\u5bc6\u7801\u6587\u4ef6\uff0c\u683c\u5f0f\u662f \u00a0\u7528\u6237\u540d\uff1a\u5bc6\u7801\u3002<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u521b\u5efa\u63d0\u793a\u6587\u4ef6\u548c\u7528\u6237\u5bc6\u7801\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">#\u7f16\u8f91\u6b22\u8fce\u4fe1\u606f\u6587\u4ef6\u3002<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># echo <span class=\"code-snippet__meta-string\" style=\"box-sizing: border-box;\">\"Welcome to Backup Server\"<\/span> &gt; \/etc\/rsyncd.motd<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># vim \/etc\/rsync.passwd \u00a0#\u521b\u5efa\u5e76\u7f16\u5199\u5bc6\u7801\u6587\u4ef6\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">rsyncuser:password123 \u00a0 \u00a0 #\u683c\u5f0f\u4e3a \u7528\u6237\u540d\u79f0\uff1a\u5bc6\u7801\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># chmod 600 \/etc\/rsync.passwd \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">#\u5bc6\u7801\u6587\u4ef6\u6743\u9650\u5fc5\u987b\u662f700\u6216\u8005600\uff0c\u5426\u5219\u7684\u8bdd\u8eab\u4efd\u9a8c\u8bc1\u4f1a\u5931\u6548\u3002<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u91cd\u65b0\u542f\u52a8\u670d\u52a1<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\">#systemctl restart rsyncd<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># rsync --daemon --config=\/etc\/rsyncd.conf \u00a0 \u00a0 #\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6rsyncd.conf\u542f\u52a8rsync\u670d\u52a1\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># netstat -antup | grep :873 \u00a0#\u67e5\u770b873\u7aef\u53e3\u662f\u5426\u76d1\u542c\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">tcp \u00a0 \u00a0 \u00a0 \u00a0<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0<\/span> \u00a0 \u00a0 \u00a0<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0<\/span>:::<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">873<\/span> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0:::* \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0LISTEN \u00a0 \u00a0 \u00a0<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">45089<\/span>\/xinetd \u00a0 \u00a0<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u6d4b\u8bd5<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">rsync\u8bed\u6cd5\uff1arsync \u9009\u9879 \u7528\u6237\u540d@\u5907\u4efd\u6e90\u670d\u52a1\u5668IP::\u5171\u4eab\u6a21\u5757\u540d \u76ee\u6807\u76ee\u5f55<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># rsync -avz \u00a0\/var\/www\/html rsyncuser@192.168.0.64::wwwroot<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">Welcome to Backup Server<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">Password: \u00a0 \u00a0 \u00a0 \u00a0 #\u8f93\u5165\u5bc6\u7801password123<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5bc6\u7801\u5904\u7406<\/p>\n<p style=\"word-break: break-all; white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u4fdd\u5b58\u597d\u5bc6\u7801\uff0c\u7136\u540e\u5728rsync\u547d\u4ee4\u4e2d\u4f7f\u7528&#8211;password-file\u6307\u5b9a\u6b64\u6587\u4ef6\u5373\u53ef<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># vim \/etc\/rsync.passwd \u00a0 \u00a0 #\u521b\u5efa\u5bc6\u7801\u6587\u4ef6\uff0c\u5176\u4e2d\u4e2d\u9700\u8981\u6307\u5b9a\u5bc6\u7801\u5373\u53ef\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">password123<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># chmod 600 \/etc\/rsync.passwd \u00a0 #\u8d4b\u4e88\u5bc6\u7801\u6587\u4ef6600\u6743\u9650\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># rsync -avz \/var\/www\/html <\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">rsyncuser@192.168.0.64::wwwroot --password-file=\/etc\/rsync.passwd \u00a0 \u00a0 \u63a8 \u00a0push<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\">#rsync -azP \u00a0rsyncuser@192.168.1.202::wwwroot \/opt --password-file=\/etc\/rsync.passwd \u00a0 \u00a0 \u62c9 \u00a0 pull<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"text-align: center; margin-top: 10px; margin-bottom: 10px; box-sizing: border-box;\">\n<section style=\"max-width: 100%; vertical-align: middle; display: inline-block; line-height: 0; box-sizing: border-box;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/03\/wxsync-2022-03-c25a58be1d8dfd35a64037e2109aeaab.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" style=\"vertical-align: middle; max-width: 100%; box-sizing: border-box;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/03\/wxsync-2022-03-c25a58be1d8dfd35a64037e2109aeaab.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.5040214\" data-w=\"746\" data-type=\"png\" \/><\/div><\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"height: auto; box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 10px 0% 15px; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 84.3137 84.3137 0%; height: auto; border-radius: 12px; overflow: hidden; padding: 5px 10px; background-color: #000000; align-self: center; margin: 0px; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"color: #ffffff; letter-spacing: 0px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">2.4 \u00a0\u811a\u672c\u5b9e\u73b0\u5b9a\u65f6\u81ea\u52a8\u5907\u4efd<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 10 10 0%; height: auto; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 0px 0%; text-align: center; justify-content: center; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 100 100 0%; height: auto; align-self: center; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"margin: 0.5em 0px; box-sizing: border-box;\">\n<section style=\"background-color: #3e3e3e; height: 1px; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 0 0 0%; height: auto; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"text-align: right; justify-content: flex-end; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 22px; height: 22px; vertical-align: top; overflow: hidden; border-radius: 50%; background-color: rgba(255, 255, 255, 0); line-height: 0; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"transform: rotateZ(315deg); -webkit-transform: rotateZ(315deg); -moz-transform: rotateZ(315deg); -o-transform: rotateZ(315deg); box-sizing: border-box;\">\n<section style=\"text-align: center; justify-content: center; margin: 9px 0% 0px; transform: translate3d(3px, 0px, 0px); -webkit-transform: translate3d(3px, 0px, 0px); -moz-transform: translate3d(3px, 0px, 0px); -o-transform: translate3d(3px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 8px; height: 8px; vertical-align: top; overflow: hidden; border-style: solid none none solid; border-width: 1px; border-color: #3e3e3e #ffffff #ffffff #3e3e3e; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># vim autobackup.sh \u00a0 #\u7f16\u5199\u811a\u672c\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">#!\/bin\/bash<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">rsync -avz \/var\/www\/html <\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">rsyncuser@<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">192.168<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.1<\/span><span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">.64<\/span>::wwwroot -- password-file=\/etc\/rsync.passwd<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># chmod +x autobackup.sh \u00a0#\u8d4b\u4e88\u811a\u672c\u6267\u884c\u6743\u9650\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># rm -rf \/web-back<span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">\/* \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span><\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]# sh autobackup.sh \u00a0 \u00a0#\u6d4b\u8bd5\u811a\u672c\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">\u5b9a\u4e49\u8ba1\u5212\u4efb\u52a1\u5b9e\u73b0\u5b9a\u65f6\u5907\u4efd\uff1a<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__comment\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]# echo \"01 3 * * * sh \/root\/autoback.sh &amp;\" &gt;&gt; \/var\/spool\/cron\/root<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u5b9e\u65f6\u5907\u4efd\/\u540c\u6b65 \u00a0\u00a0\u00a0\u89e6\u53d1\u5f0f\u540c\u6b65<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"margin: 10px 0%; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 100%; vertical-align: top; border-width: 1px; border-style: solid none; border-color: #3e3e3e; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"align-items: center; display: flex; margin: -3px 0%; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; flex: 0 0 auto; border-width: 0px 0px 0px 2px; border-style: none none none solid; border-color: #3e3e3e; overflow: hidden; box-sizing: border-box;\">\n<section style=\"text-align: center; margin: 0px 0%; transform: translate3d(-10px, 0px, 0px); -webkit-transform: translate3d(-10px, 0px, 0px); -moz-transform: translate3d(-10px, 0px, 0px); -o-transform: translate3d(-10px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; min-width: 10%; max-width: 100%; vertical-align: top; transform: matrix(1, 0, -0.2, 1, 0, 0); -webkit-transform: matrix(1, 0, -0.2, 1, 0, 0); -moz-transform: matrix(1, 0, -0.2, 1, 0, 0); -o-transform: matrix(1, 0, -0.2, 1, 0, 0); padding: 6px 10px 6px 20px; background-color: #000000; box-sizing: border-box; border: 2px solid #3e3e3e;\">\n<section style=\"line-height: 1; letter-spacing: 0px; padding: 0px; color: #ffffff; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><span style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">No.3<\/strong><\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; flex: 1 1 auto; border-width: 0px; box-sizing: border-box;\">\n<section style=\"line-height: 1; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\u00a0 rsync+sersync\u5b9e\u73b0\u6570\u636e\u5b9e\u65f6\u540c\u6b65<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; flex: 0 0 auto; overflow: hidden; box-sizing: border-box; border: 0px none #3e3e3e;\">\n<section style=\"text-align: center; margin: -2px 0%; transform: translate3d(10px, 0px, 0px); -webkit-transform: translate3d(10px, 0px, 0px); -moz-transform: translate3d(10px, 0px, 0px); -o-transform: translate3d(10px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; min-width: 10%; max-width: 100%; vertical-align: top; transform: matrix(1, 0, -0.2, 1, 0, 0); -webkit-transform: matrix(1, 0, -0.2, 1, 0, 0); -moz-transform: matrix(1, 0, -0.2, 1, 0, 0); -o-transform: matrix(1, 0, -0.2, 1, 0, 0); padding: 6px 10px; background-color: #ffffff; box-sizing: border-box; border: 2px solid #3e3e3e;\">\n<section style=\"line-height: 1; letter-spacing: 0px; padding: 0px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u4e00\u53f0\u88c5sersync\u3001\u4e00\u53f0\u88c5rsync\u670d\u52a1<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">sersync\u670d\u52a1\u5668\uff08\u6570\u636e\u6e90\uff0c\u6e90\u673a\u5668\uff09\uff1a192.168.1.63<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">rsync\u5ba2\u6237\u7aef\uff08\u5907\u4efd\u7aef\uff0c\u76ee\u6807\u673a\u5668\uff09\uff1a192.168.1.64<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">rsync+inotify-tools\u4e0ersync+sersync\u67b6\u6784\u7684\u533a\u522b\uff1f<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">rsync+inotify-tools<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">inotify\u53ea\u80fd\u8bb0\u5f55\u4e0b\u88ab\u76d1\u542c\u7684\u76ee\u5f55\u53d1\u751f\u4e86\u53d8\u5316\uff08\u589e\uff0c\u5220\uff0c\u6539\uff09\u5e76\u6ca1\u6709\u628a\u5177\u4f53\u662f\u54ea\u4e2a\u6587\u4ef6\u6216\u8005\u54ea\u4e2a\u76ee\u5f55\u53d1\u751f\u4e86\u53d8\u5316\u8bb0\u5f55\u4e0b\u6765\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">rsync\u5728\u540c\u6b65\u7684\u65f6\u5019\uff0c\u5e76\u4e0d\u77e5\u9053\u5177\u4f53\u662f\u54ea\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\u53d1\u751f\u4e86\u53d8\u5316\uff0c\u6bcf\u6b21\u90fd\u662f\u5bf9\u6574\u4e2a\u76ee\u5f55\u8fdb\u884c\u540c\u6b65\uff0c\u5f53\u6570\u636e\u91cf\u5f88\u5927\u65f6\uff0c\u6574\u4e2a\u76ee\u5f55\u540c\u6b65\u975e\u5e38\u8017\u65f6\uff08rsync\u8981\u5bf9\u6574\u4e2a\u76ee\u5f55\u904d\u5386\u67e5\u627e\u5bf9\u6bd4\u6587\u4ef6\uff09\uff0c\u56e0\u6b64\u6548\u7387\u5f88\u4f4e\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">rsync+sersync<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">sersync\u53ef\u4ee5\u8bb0\u5f55\u88ab\u76d1\u542c\u76ee\u5f55\u4e2d\u53d1\u751f\u53d8\u5316\u7684\uff08\u589e\uff0c\u5220\uff0c\u6539\uff09\u5177\u4f53\u67d0\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u540d\u5b57\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">rsync\u5728\u540c\u6b65\u65f6\uff0c\u53ea\u540c\u6b65\u53d1\u751f\u53d8\u5316\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff08\u6bcf\u6b21\u53d1\u751f\u53d8\u5316\u7684\u6570\u636e\u76f8\u5bf9\u6574\u4e2a\u540c\u6b65\u76ee\u5f55\u6570\u636e\u6765\u8bf4\u5f88\u5c0f\uff0crsync\u5728\u904d\u5386\u67e5\u627e\u5bf9\u6bd4\u6587\u4ef6\u65f6\uff0c\u901f\u5ea6\u5f88\u5feb\uff09\uff0c\u56e0\u6b64\u6548\u7387\u5f88\u9ad8\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">\u540c\u6b65\u8fc7\u7a0b\u548c\u539f\u7406\uff1a<\/strong><\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">1.\u7528\u6237\u5b9e\u65f6\u7684\u5f80sersync\u670d\u52a1\u5668\u4e0a\u5199\u5165\u66f4\u65b0\u6587\u4ef6\u6570\u636e\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">2.\u6b64\u65f6\u9700\u8981\u5728\u540c\u6b65\u4e3b\u670d\u52a1\u5668\u4e0a\u914d\u7f6esersync\u670d\u52a1\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">3.\u5728\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u5f00\u542frsync\u5b88\u62a4\u8fdb\u7a0b\u670d\u52a1\uff0c\u4ee5\u540c\u6b65\u62c9\u53d6\u6765\u81easersync\u670d\u52a1\u5668\u4e0a\u7684\u6570\u636e\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">4.\u5728\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u5f00\u542frsync\u5b88\u62a4\u8fdb\u7a0b\u670d\u52a1\uff0c\u4f7fsersync push\u6587\u4ef6\u8fc7\u6765\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u901a\u8fc7rsync\u7684\u5b88\u62a4\u8fdb\u7a0b\u670d\u52a1\u540e\u53ef\u4ee5\u53d1\u73b0\uff0c\u5b9e\u9645\u4e0asersync\u5c31\u662f\u76d1\u63a7\u672c\u5730\u7684\u6570\u636e\u5199\u5165\u6216\u66f4\u65b0\u4e8b\u4ef6\uff0c\u7136\u540e\uff0c\u5728\u8c03\u7528rsync\u5ba2\u6237\u7aef\u7684\u547d\u4ee4\uff0c\u5c06\u5199\u5165\u6216\u66f4\u65b0\u4e8b\u4ef6\u5bf9\u5e94\u7684\u6587\u4ef6\u901a\u8fc7rsync\u63a8\u9001\u5230\u76ee\u6807\u670d\u52a1\u5668\uff0c\u5982\u56fe 2-3 \u6240\u793a\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"text-align: center; margin-top: 10px; margin-bottom: 10px; box-sizing: border-box;\">\n<section style=\"max-width: 100%; vertical-align: middle; display: inline-block; line-height: 0; box-sizing: border-box;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/03\/wxsync-2022-03-65f39a7386df9320a1b6c3920d6d0141.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" style=\"vertical-align: middle; max-width: 100%; box-sizing: border-box;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/03\/wxsync-2022-03-65f39a7386df9320a1b6c3920d6d0141.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.8360902\" data-w=\"665\" data-type=\"png\" \/><\/div><\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"height: auto; box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 10px 0% 15px; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 84.3137 84.3137 0%; height: auto; border-radius: 12px; overflow: hidden; padding: 5px 10px; background-color: #000000; align-self: center; margin: 0px; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"color: #ffffff; letter-spacing: 0px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">3.1 \u00a0\u4e0b\u8f7dsersync<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 10 10 0%; height: auto; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 0px 0%; text-align: center; justify-content: center; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 100 100 0%; height: auto; align-self: center; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"margin: 0.5em 0px; box-sizing: border-box;\">\n<section style=\"background-color: #3e3e3e; height: 1px; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 0 0 0%; height: auto; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"text-align: right; justify-content: flex-end; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 22px; height: 22px; vertical-align: top; overflow: hidden; border-radius: 50%; background-color: rgba(255, 255, 255, 0); line-height: 0; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"transform: rotateZ(315deg); -webkit-transform: rotateZ(315deg); -moz-transform: rotateZ(315deg); -o-transform: rotateZ(315deg); box-sizing: border-box;\">\n<section style=\"text-align: center; justify-content: center; margin: 9px 0% 0px; transform: translate3d(3px, 0px, 0px); -webkit-transform: translate3d(3px, 0px, 0px); -moz-transform: translate3d(3px, 0px, 0px); -o-transform: translate3d(3px, 0px, 0px); box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 8px; height: 8px; vertical-align: top; overflow: hidden; border-style: solid none none solid; border-width: 1px; border-color: #3e3e3e #ffffff #ffffff #3e3e3e; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">1.\u5728google code\u4e0b\u8f7dsersync\u7684\u53ef\u6267\u884c\u6587\u4ef6\u7248\u672c\uff0c\u91cc\u9762\u6709\u914d\u7f6e\u6587\u4ef6\u4e0e\u53ef\u6267\u884c\u6587\u4ef6<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">wget<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">https:\/\/sersync.googlecode.com\/files\/sersync2.5.4_64bit_binary_stable_final.tar.gz<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">#\u6709\u65f6\u4e0b\u8f7d\u5931\u8d25\uff0c\u6240\u6709\u8981\u672c\u5730\u7559\u5b58\u4e00\u4efd<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">2.\u4e0a\u4f20\u5230\u670d\u52a1\u5668 \/opt\u76ee\u5f55\u4e0b\u3002<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># cd \/opt \u00a0 \u00a0 \u00a0 #\u5207\u6362\u5de5\u4f5c\u76ee\u5f55\u5230\/opt\u76ee\u5f55\u4e0b\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 opt]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># tar xvf .\/sersync2.5.4_64bit_binary_stable_final.tar.gz #\u89e3\u538b\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 opt]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># mv .\/GNU-Linux-x86 \u00a0.\/sersync \u00a0#\u89e3\u538b\u540e\u7684\u6587\u4ef6\u91cd\u547d\u540d\u4e3asersync\u3002<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"height: auto; box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 10px 0% 15px; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 84.3137 84.3137 0%; height: auto; border-radius: 12px; overflow: hidden; padding: 5px 10px; background-color: #000000; align-self: center; margin: 0px; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"color: #ffffff; letter-spacing: 0px; box-sizing: border-box;\">\n<p style=\"margin: 0px; padding: 0px; box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">3.2 \u00a0\u914d\u7f6esersync<\/strong><\/p>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 10 10 0%; height: auto; box-sizing: border-box;\">\n<section style=\"box-sizing: border-box;\">\n<section style=\"display: flex; flex-flow: row nowrap; margin: 0px 0%; text-align: center; justify-content: center; box-sizing: border-box;\">\n<section style=\"display: inline-block; vertical-align: middle; width: auto; flex: 100 100 0%; height: auto; align-self: center; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"margin: 0.5em 0px; box-sizing: border-box;\">\n<section style=\"background-color: #3e3e3e; height: 1px; box-sizing: border-box;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: middle; width: auto; align-self: center; flex: 0 0 0%; height: auto; line-height: 0.1; box-sizing: border-box;\">\n<section style=\"text-align: right; justify-content: flex-end; box-sizing: border-box;\">\n<section style=\"display: inline-block; width: 22px; height: 22px; vertical-align: top; overflow: hidden; border-radius: 50%; background-color: rgba(255, 255, 255, 0); line-height: 0; box-sizing: border-box; border: 1px solid #3e3e3e;\">\n<section style=\"transform: rotateZ(315deg); -webkit-transform: rotateZ(315deg); -moz-transform: rotateZ(315deg); -o-transform: rotateZ(315deg); box-sizing: border-box;\">\n<section style=\"text-align: center; justify-content: center; margin: 9px 0% 0px; transform: translate3d(3px, 0px, 0px); -webkit-transform: translate3d(3px, 0px, 0px); -moz-transform: translate3d(3px, 0px, 0px); -o-transform: translate3d(3px, 0px, 0px); box-sizing: border-box;\"><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 opt]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># cd sersync \u00a0#\u5207\u6362\u5de5\u4f5c\u76ee\u5f55\u81f3sersync\u76ee\u5f55\u4e0b\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 sersync]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># cp confxml.xml confxml.xml.bak#\u5907\u4efd\u914d\u7f6e\u6587\u4ef6\uff0c\u4fbf\u4e8e\u4e8c\u6b21\u4fee\u6539<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">1.\u66f4\u6539\u4f18\u5316sersync\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 sersync]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># vim confxml.xml \u00a0#\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u4e2d\u768424--28\u884c\uff0c\u5982\u4e0b\u6240\u793a\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">&lt;localpath watch=<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"\/var\/www\/html\"<\/span>&gt; \u00a0 #\u672c\u5730\u540c\u6b65\u6570\u636e\u76ee\u5f55\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">&lt;remote ip=<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"192.168.1.64\"<\/span> name=<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"wwwroot\"<\/span>\/&gt; \u00a0<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\">#rsync\u6a21\u5757\u540d\u79f0.<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">&lt;auth start=<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"true\"<\/span> users=<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"rsyncuser\"<\/span> passwordfile=<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"\/etc\/rsync.passwd\"<\/span>\/&gt;<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">#\u4fee\u6539<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">31<\/span>-<span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">-34<\/span>\u884c\uff0c\u8ba4\u8bc1\u90e8\u5206\uff08rsync\u5bc6\u7801\u8ba4\u8bc1\uff09\u3002<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">2.\u5f00\u542fsersync\u5b88\u62a4\u8fdb\u7a0b\u540c\u6b65\u6570\u636e\u3002<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 sersync]# \/opt\/sersync\/sersync2 \u00a0-d -r -o \u00a0\/opt\/sersync\/confxml.xml<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\n<\/section>\n<section style=\"text-align: center; margin-top: 10px; margin-bottom: 10px; box-sizing: border-box;\">\n<section style=\"max-width: 100%; vertical-align: middle; display: inline-block; line-height: 0; box-sizing: border-box;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/03\/wxsync-2022-03-0e310de085eebc0ba178e4d6421e6a6d.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" style=\"vertical-align: middle; max-width: 100%; box-sizing: border-box;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/03\/wxsync-2022-03-0e310de085eebc0ba178e4d6421e6a6d.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.5444444\" data-w=\"1080\" data-type=\"png\" \/><\/div><\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u6d4b\u8bd5<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u572863 \/var\/www\/html\/\u00a0\u76ee\u5f55 \u589e\u52a0\u3001\u5220\u9664\u3001\u6216\u6539\u76ee\u5f55\u6587\u4ef6\u3002<\/p>\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u770b64 \/web-back \u76ee\u5f55\u7684\u53d8\u5316<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod64 web-back]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># watch ls -l<\/span><\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u8bbe\u7f6esersync\u76d1\u63a7\u5f00\u673a\u81ea\u52a8\u6267\u884c<\/p>\n<\/section>\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 sersync]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># vim \/etc\/rc.d\/rc.local \u00a0 \u00a0#\u7f16\u8f91rc.local\u6587\u4ef6\uff0c\u5728\u6700\u540e\u6dfb\u52a0\u4e00\u884c\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">\/opt\/sersync\/sersync2 -d -r -o \u00a0\/opt\/sersync\/confxml.xml \u00a0 \uff03\u8bbe\u7f6e\u5f00\u673a\u81ea\u52a8\u8fd0\u884c\u811a\u672c\u3002<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 sersync]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># chmod 755 \/etc\/rc.d\/rc.local \u00a0#\u6dfb\u52a0\u6267\u884c\u6743\u9650\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">reboot \u53ef\u4ee5\u6d4b\u8bd5\u4e00\u4e0b<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"box-sizing: border-box;\">\n<p style=\"white-space: normal; margin: 0px; padding: 0px; box-sizing: border-box;\">\u6dfb\u52a0\u811a\u672c\u76d1\u63a7sersync\u662f\u5426\u6b63\u5e38\u8fd0\u884c<\/p>\n<\/section>\n<section style=\"margin: 0px 0% 25px; box-sizing: border-box;\">\n<section style=\"font-size: 17px; box-sizing: border-box;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># vim \/opt\/check_sersync.sh \u00a0 \u00a0 #\u7f16\u8f91\u811a\u672c\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\u3002<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">#!\/bin\/sh<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">sersync=<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"\/opt\/sersync\/sersync2\"<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">confxml=<span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">\"\/opt\/sersync\/confxml.xml\"<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">status=$(ps aux |grep <span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">'sersync2'<\/span>|grep -v <span class=\"code-snippet__string\" style=\"box-sizing: border-box;\">'grep'<\/span>|wc -l)<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__keyword\" style=\"box-sizing: border-box;\">if<\/span> [ $status -eq <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0<\/span> ];<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">then<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">$sersync -d -r -o $confxml &amp;<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__keyword\" style=\"box-sizing: border-box;\">else<\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\"><span class=\"code-snippet__built_in\" style=\"box-sizing: border-box;\">exit<\/span> <span class=\"code-snippet__number\" style=\"box-sizing: border-box;\">0<\/span>;<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">fi<\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">[root@xuegod63 ~]<span class=\"code-snippet__meta\" style=\"box-sizing: border-box;\"># chmod +x \/opt \/check_sersync.sh <\/span><\/span><\/code><code style=\"box-sizing: border-box;\"><span class=\"code-snippet_outer\" style=\"box-sizing: border-box;\">#\u6dfb\u52a0\u811a\u672c\u6267\u884c\u6743\u9650,\u628a\u8fd9\u4e2a\u811a\u672c\u52a0\u5230\u4efb\u52a1\u8ba1\u5212\uff0c\u5b9a\u671f\u6267\u884c\u68c0\u6d4b\u3002<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 \u4e00\uff1aRsync\u6982\u8ff0 \u4e8c\uff1aRsync\u670d\u52a1\u5b89\u88c5 \u4e09\uff1aRsync+sersync\u5b9e\u73b0\u6570\u636e\u5b9e\u65f6\u540c\u6b65 No.1 \u00a0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-6511","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/6511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6511"}],"version-history":[{"count":2,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/6511\/revisions"}],"predecessor-version":[{"id":6573,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/6511\/revisions\/6573"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}