{"id":1550,"date":"2011-02-03T19:42:41","date_gmt":"2011-02-03T12:42:41","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=1550"},"modified":"2011-02-03T19:42:41","modified_gmt":"2011-02-03T12:42:41","slug":"rsyncd-server-on-lenny","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=1550","title":{"rendered":"rsyncd server on lenny"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2011\/02\/rsync_ssh_logo.jpg\" rel=\"lightbox[1550]\"><img decoding=\"async\" loading=\"lazy\" class=\"alignright size-full wp-image-1558\" title=\"rsync_ssh_logo\" src=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2011\/02\/rsync_ssh_logo.jpg\" alt=\"\" width=\"150\" height=\"95\" \/><\/a>This mini how-to provides a comprehensive instruction on <strong>how to install rsync in Debian Lenny<\/strong>. I\u2019m always using rsync to sync files on several servers I maintained. Let\u2019s install and configure rsyncd server :<\/p>\n<ul>\n<li>Install rsync\n<pre class=\"brush:plain\">apt-get install rsync<\/pre>\n<\/li>\n<li>Create a configuration file for rsyncd\n<pre class=\"brush:plain\">vi \/etc\/rsyncd.conf<\/pre>\n<p>with the following content :<\/p>\n<pre class=\"brush:plain\">log file=\/var\/log\/rsyncd\npid file=\/var\/run\/rsyncd.pid\nsocket options = SO_KEEPALIVE\n[www]\ncomment = public archive\npath = \/var\/www\nuse chroot = yes\nmax connections=2\nlock file = \/var\/lock\/rsyncd\nread only = yes\nlist = yes\nuid = www-data\ngid = www-data\nauth users = wwwsync\nsecrets file = \/etc\/rsyncd.secrets\nstrict modes = yes\nhosts allow = 10.1.1.1 10.1.1.100\nignore errors = no\nignore nonreadable = yes\ntransfer logging = yes\nlog format = %t: host %h (%a) %o %f (%l bytes). Total %b bytes.\ntimeout = 300\nrefuse options = checksum dry-run\ndont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz<\/pre>\n<\/li>\n<li>Create a login and password in\u00a0 \/etc\/rsyncd.secrets\n<pre class=\"brush:plain\">wwwsync:synhronizer<\/pre>\n<\/li>\n<li>In the file <em>\/etc\/default\/rsync<\/em> replace a line <em>RSYNC_ENABLE=false<\/em> with <em>RSYNC_ENABLE=true<\/em><\/li>\n<li>Run rsync\n<pre class=\"brush:plain\">\/etc\/init.d\/rsync start<\/pre>\n<\/li>\n<li>Check if rsync ran\n<pre class=\"brush:plain\">ps xauw|grep rsync<\/pre>\n<p>If nothing go wrong, you should see the following message :<br \/>\nroot 3935 0.0 0.3 3368 832 ? S 04:22 0:00 \/usr\/bin\/rsync \u2013no-detach \u2013daemon \u2013config \/etc\/rsyncd.conf<\/li>\n<li>Start synchronization (login:wwwsync password:synhronizer)\n<pre class=\"brush:plain\">rsync -rvt --progress wwwsync@www.local::www<\/pre>\n<p>www.local should be replaced with the ip or server name on which you are going to fulfill synchronization.<\/li>\n<\/ul>\n<p>Done. Now the rsync server ready to serve.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This mini how-to provides a comprehensive instruction on how to install rsync in Debian Lenny. I\u2019m always using rsync to sync files on several servers I maintained. Let\u2019s install and configure rsyncd server : Install rsync apt-get install rsync Create a configuration file for rsyncd vi \/etc\/rsyncd.conf with the following content : log file=\/var\/log\/rsyncd pid [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1558,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,9],"tags":[202],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/1550"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1550"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/1550\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/media\/1558"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}