{"id":85,"date":"2018-12-15T11:28:25","date_gmt":"2018-12-15T09:28:25","guid":{"rendered":"https:\/\/amsd.go.ro\/wordpress\/?p=85"},"modified":"2021-09-07T11:24:46","modified_gmt":"2021-09-07T08:24:46","slug":"rsync-server-on-raspberry-pi-over-debian","status":"publish","type":"post","link":"https:\/\/amsd.go.ro\/wordpress\/?p=85","title":{"rendered":"Rsync server on Raspberry Pi over Debian"},"content":{"rendered":"<h2>How to configure rsync server on Raspebery over Debian<\/h2>\n<p>&nbsp;<\/p>\n<p>First of all, you have to install rsync package:<\/p>\n<pre><code>apt-get install rsync<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>Create and edit RSync configuration file:<\/p>\n<pre>sudo vi \/etc\/rsyncd.conf<\/pre>\n<p>&nbsp;<\/p>\n<p>Here is my configuration file:<\/p>\n<pre>uid=nobody<br \/>gid=nogroup<br \/>max connections=50<br \/>socket options=SO_KEEPALIVE<br \/>address=10.8.0.1<br \/>[raspberry]<br \/>path=\/var\/backups\/raspberry\/<br \/>comment=Rpis backups<br \/>readonly=no<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Note<\/strong> that this configuration file is a bit specific as:<\/p>\n<ul>\n<li>Rsyncd is only listening to the VPN interface<\/li>\n<li>There is not authentification (as we are in a &ldquo;safe&rdquo; environment)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Create the folder:<\/p>\n<pre>sudo mkdir\/var\/backups\/raspberry\/<\/pre>\n<p>&nbsp;<\/p>\n<p>And adjust the owner:<\/p>\n<pre>sudo chownnobody:nogroup\/var\/backups\/raspberry\/<\/pre>\n<p>&nbsp;<\/p>\n<p>We can now start the server:<\/p>\n<pre>sudo \/etc\/init.d\/rsync start<\/pre>\n<p>&nbsp;<\/p>\n<p>Check that it&rsquo;s started:<\/p>\n<pre>sudo \/etc\/init.d\/rsync status<\/pre>\n<p>&nbsp;<\/p>\n<p>To start rsyncd automatically, edit the following file:<\/p>\n<pre>sudo vi \/etc\/default\/rsync<\/pre>\n<p>&nbsp;<\/p>\n<p>And adjust the parameters as follow:<\/p>\n<pre>RSYNC_ENABLE=true<\/pre>\n<p>&nbsp;<\/p>\n<p>From a remote host, we can test the connection:<\/p>\n<pre>$ rsync rsync:\/\/10.8.0.1<br \/>raspberry&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rpis backups<\/pre>\n<pre>&nbsp;<\/pre>\n<p>Ready to sync !<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to configure rsync server on Raspebery over Debian &nbsp; First of all, you have to install rsync package: apt-get install rsync &nbsp; Create and edit RSync configuration file: sudo vi \/etc\/rsyncd.conf &nbsp; Here is my configuration file: uid=nobodygid=nogroupmax connections=50socket [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/amsd.go.ro\/wordpress\/?p=85#more-85\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">Rsync server on Raspberry Pi over Debian<\/span><\/a><\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10,20,7,11,12],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-technology","tag-ps_32","tag-ps_19","tag-ps_55","tag-ps_57","tag-ps_17"],"_links":{"self":[{"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85"}],"version-history":[{"count":1,"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":159,"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions\/159"}],"wp:attachment":[{"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}