﻿{"id":29,"date":"2016-05-08T07:30:13","date_gmt":"2016-05-07T23:30:13","guid":{"rendered":"http:\/\/simon.conley.mobi\/?p=29"},"modified":"2021-06-08T23:13:05","modified_gmt":"2021-06-08T15:13:05","slug":"debian-%e5%ae%89%e8%a3%9d-rsync-server","status":"publish","type":"post","link":"https:\/\/old.ice.com.tw\/?p=29","title":{"rendered":"Debian \u5b89\u88dd rsync Server"},"content":{"rendered":"<p># apt install rsync<br \/>\n# nano \/etc\/rsyncd.conf<\/p>\n<p>------------------------------------------------------------------------------------# sample rsyncd.conf configuration file<\/p>\n<p># GLOBAL OPTIONS<\/p>\n<p>#motd file=\/etc\/motd<br \/>\nlog file=\/var\/log\/rsyncd.log<br \/>\n# for pid file, do not use \/var\/run\/rsync.pid if<br \/>\n# you are going to run rsync out of the init.d script.<br \/>\n# The init.d script does its own pid file handling,<br \/>\n# so omit the \"pid file\" line completely in that case.<br \/>\npid file=\/var\/run\/rsyncd.pid<br \/>\n#syslog facility=daemon<br \/>\n#socket options=<\/p>\n<p># MODULE OPTIONS<\/p>\n<p>[myrsync]<\/p>\n<p>comment = public archive<br \/>\npath = \/myrsync<br \/>\nuse chroot = yes<br \/>\n# max connections=10<br \/>\nlock file = \/var\/lock\/rsyncd<br \/>\n# the default for read only is yes...<br \/>\nread only = no<br \/>\nlist = yes<br \/>\nuid = nobody<br \/>\ngid = nogroup<br \/>\n# exclude =<br \/>\n# exclude from =<br \/>\n# include =<br \/>\n# include from =<br \/>\nauth users =admin<br \/>\nsecrets file = \/etc\/rsyncd.secrets<br \/>\nstrict modes = yes<br \/>\n# hosts allow =<br \/>\n# hosts deny =<br \/>\nignore errors = yes<br \/>\nignore nonreadable = yes<br \/>\ntransfer logging = yes<br \/>\n# log format = %t: host %h (%a) %o %f (%l bytes). Total %b bytes.<br \/>\ntimeout = 600<br \/>\nrefuse options = checksum dry-run<br \/>\ndont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz<br \/>\n--------------------------------------------------------------<br \/>\n# nano \/etc\/rsyncd.secrets<br \/>\n# nano \/etc\/default\/rsync<br \/>\n#chown root:root \/etc\/rsyncd.secrets<br \/>\n#chmod 600 \/etc\/rsyncd.secrets<br \/>\n#\/etc\/init.d\/rsync start<\/p>\n<hr \/>\n<h6>\u5728Linux client \u5230 Rsync Server:<br \/>\nrsync -avzrHS --delete \/sftpserver\/uploadrsync\/ hotai@s2.ice.com.tw::uploadrsync<\/h6>\n","protected":false},"excerpt":{"rendered":"<p># apt install rsync # nano \/etc\/rsyncd.conf ----------- &hellip; <a href=\"https:\/\/old.ice.com.tw\/?p=29\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008Debian \u5b89\u88dd rsync Server\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29"}],"version-history":[{"count":5,"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":270,"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/29\/revisions\/270"}],"wp:attachment":[{"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/old.ice.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}