{"id":373,"date":"2011-01-11T12:02:46","date_gmt":"2011-01-11T11:02:46","guid":{"rendered":"https:\/\/thebc.ch\/blog\/?p=373"},"modified":"2014-08-20T06:22:36","modified_gmt":"2014-08-20T04:22:36","slug":"rsync-server","status":"publish","type":"post","link":"https:\/\/thebc.ch\/blog\/?p=373","title":{"rendered":"Rsync server"},"content":{"rendered":"<span id=\"Installing_and_running_an_rsync_server\"><h2>Installing and running an rsync server<\/h2><\/span>\n<ul>\n<li>Go and find a rsync-package for your distribution.<\/li>\n<li>Install it! (what else?\u00c2\u00a0\ud83d\ude09<\/li>\n<li>Use these config files as a base:<\/li>\n<\/ul>\n<p>$ vi \/etc\/rsyncd.conf<\/p>\n<p>&nbsp;<\/p>\n<pre>uid = nobody\r\ngid = nobody\r\nuse chroot = no\r\nread only = yes\r\nstrict modes = yes\r\nmax connections = 1\r\nsyslog facility = local5\r\npid file = \/var\/run\/rsyncd.pid\r\nlog file = \/var\/log\/rsyncd.log\r\n[xxx]\r\n      path = \/mnt\/xxx\r\n      comment = XXX (approx 500 GB)\r\n      auth users = susan\r\n      secrets file = \/etc\/rsyncd.secrets<\/pre>\n<p>&nbsp;<\/p>\n<p>$ vi \/etc\/xinetd.d\/rsync<\/p>\n<pre>service rsync\r\n{\r\n       disable = no\r\n       socket_type     = stream\r\n       wait            = no\r\n       user            = root\r\n       server          = \/usr\/bin\/rsync\r\n       server_args     = --daemon --bwlimit=KBPS\r\n       log_on_failure  += USERID\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>$ vi \/etc\/rsyncd.secrets<\/p>\n<pre>susan:herpass<\/pre>\n<p>&nbsp;<\/p>\n<p>$ chmod 600 \/etc\/rsyncd.secrets<br \/>\n$ systemctl stop rsyncd<br \/>\n$ systemctl disable rsyncd<br \/>\n$ systemctl enable xinetd<br \/>\n$ systemctl start xinetd<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing and running an rsync server Go and find a rsync-package for your distribution. Install it! (what else?\u00c2\u00a0\ud83d\ude09 Use these config files as a base: $ vi \/etc\/rsyncd.conf &nbsp; uid = nobody gid = nobody use chroot = no read &hellip; <a href=\"https:\/\/thebc.ch\/blog\/?p=373\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,16],"tags":[44,428,429],"class_list":["post-373","post","type-post","status-publish","format-standard","hentry","category-linux","category-software","tag-rsync","tag-rsyncd","tag-xinetd"],"_links":{"self":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=373"}],"version-history":[{"count":9,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/373\/revisions"}],"predecessor-version":[{"id":4467,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/373\/revisions\/4467"}],"wp:attachment":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}