{"id":164,"date":"2012-01-24T16:16:48","date_gmt":"2012-01-24T16:16:48","guid":{"rendered":"https:\/\/shan.info\/new\/linux%e4%b8%8b%e4%bd%bf%e7%94%a8rsync%e6%9c%80%e5%bf%ab%e9%80%9f%e5%88%a0%e9%99%a4%e6%b5%b7%e9%87%8f%e6%96%87%e4%bb%b6\/"},"modified":"2012-01-24T16:16:48","modified_gmt":"2012-01-24T16:16:48","slug":"linux%e4%b8%8b%e4%bd%bf%e7%94%a8rsync%e6%9c%80%e5%bf%ab%e9%80%9f%e5%88%a0%e9%99%a4%e6%b5%b7%e9%87%8f%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/linux%e4%b8%8b%e4%bd%bf%e7%94%a8rsync%e6%9c%80%e5%bf%ab%e9%80%9f%e5%88%a0%e9%99%a4%e6%b5%b7%e9%87%8f%e6%96%87%e4%bb%b6\/","title":{"rendered":"Linux\u4e0b\u4f7f\u7528rsync\u6700\u5feb\u901f\u5220\u9664\u6d77\u91cf\u6587\u4ef6"},"content":{"rendered":"<p>1\u3001\u5148\u5b89\u88c5rsync\uff1a<br \/> <code>yum install rsync<\/code><br \/> 2\u3001\u5efa\u7acb\u4e00\u4e2a\u7a7a\u7684\u6587\u4ef6\u5939\uff1a<br \/> <code>mkdir \/tmp\/test<\/code><br \/> 3\u3001\u7528rsync\u5220\u9664\u76ee\u6807\u76ee\u5f55\uff1a<br \/> <code>rsync --delete-before -a -H -v --progress --stats  \/tmp\/test log<\/code><br \/> \u8fd9\u6837\u6211\u4eec\u8981\u5220\u9664\u7684log\u76ee\u5f55\u5c31\u4f1a\u88ab\u6e05\u7a7a\u4e86\uff0c\u5220\u9664\u7684\u901f\u5ea6\u4f1a\u975e\u5e38\u5feb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u5148\u5b89\u88c5rsync\uff1a yum install rsync 2\u3001\u5efa\u7acb\u4e00\u4e2a\u7a7a\u7684\u6587\u4ef6\u5939\uff1a mkdir \/tmp\/test 3\u3001\u7528rsync\u5220\u9664\u76ee\u6807\u76ee\u5f55\uff1a rsync &#8211;delete-before -a -H -v &#8211;progress &#8211;stats \/tmp\/test log \u8fd9\u6837\u6211\u4eec\u8981\u5220\u9664\u7684log\u76ee\u5f55\u5c31\u4f1a\u88ab\u6e05\u7a7a\u4e86\uff0c\u5220\u9664\u7684\u901f\u5ea6\u4f1a\u975e\u5e38\u5feb\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-164","post","type-post","status-publish","format-standard","hentry","category-centos-6"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/comments?post=164"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/164\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}