{"id":64,"date":"2017-02-20T14:30:36","date_gmt":"2017-02-20T14:30:36","guid":{"rendered":"https:\/\/d1m0.com\/?p=64"},"modified":"2017-08-26T09:16:42","modified_gmt":"2017-08-26T09:16:42","slug":"simple-lsyncd-config","status":"publish","type":"post","link":"https:\/\/d1m0.com\/?p=64","title":{"rendered":"simple lsyncd config."},"content":{"rendered":"<p>&#8212;-Node1&#8212;-<br \/>\n&#8212; User configuration file for lsyncd.<br \/>\n&#8212;<br \/>\n&#8212; Simple example for default rsync, but executing moves through on the target.<br \/>\n&#8212;<br \/>\n&#8212; For more examples, see \/usr\/share\/doc\/lsyncd*\/examples\/<br \/>\n&#8212;<\/p>\n<p>settings = {<br \/>\nlogfile = &#8220;\/var\/log\/lsyncd.log&#8221;,<br \/>\nstatusFile =&#8221;var\/log\/lsyncd.stat&#8221;,<br \/>\nstatusInterval = 1,<br \/>\ninsist = true,<br \/>\n}<\/p>\n<p>sync {<br \/>\ndefault.rsync,<br \/>\nsource=&#8221;\/etc\/asterisk&#8221;,<br \/>\ntarget=&#8221;asterisk2:\/etc\/asterisk&#8221;,<br \/>\nrsync = {<br \/>\nverbose = true,<br \/>\nacls = true,<br \/>\nrsh = &#8220;\/usr\/bin\/ssh -p 22 -o StrictHostKeyChecking=no -l lsyncd -i \/home\/lsyncd\/.ssh\/id_rsa&#8221;<br \/>\n}<br \/>\n}<br \/>\n&#8212;<br \/>\nsync {<br \/>\ndefault.rsync,<br \/>\nsource=&#8221;\/etc\/voip&#8221;,<br \/>\ntarget=&#8221;asterisk2:\/etc\/voip&#8221;,<br \/>\nrsync = {<br \/>\nverbose = true,<br \/>\nacls = true,<br \/>\nrsh = &#8220;\/usr\/bin\/ssh -p 22 -o StrictHostKeyChecking=no -l lsyncd -i \/home\/lsyncd\/.ssh\/id_rsa&#8221;<br \/>\n}<br \/>\n}<br \/>\n&#8212;<\/p>\n<p><!--more--><\/p>\n<p>&#8212;Node2&#8212;<\/p>\n<p>&#8212;-<br \/>\n&#8212; User configuration file for lsyncd.<br \/>\n&#8212;<br \/>\n&#8212; Simple example for default rsync, but executing moves through on the target.<br \/>\n&#8212;<br \/>\n&#8212; For more examples, see \/usr\/share\/doc\/lsyncd*\/examples\/<br \/>\n&#8212;<br \/>\nsettings = {<br \/>\nlogfile = &#8220;\/var\/log\/lsyncd.log&#8221;,<br \/>\nstatusFile =&#8221;var\/log\/lsyncd.stat&#8221;,<br \/>\nstatusInterval = 1,<br \/>\ninsist = true,<\/p>\n<p>}<br \/>\nsync {<br \/>\ndefault.rsync,<br \/>\nsource=&#8221;\/etc\/asterisk&#8221;,<br \/>\ntarget=&#8221;asterisk1:\/etc\/asterisk&#8221;,<br \/>\nrsync = {<br \/>\nverbose = true,<br \/>\nacls = true,<br \/>\nrsh = &#8220;\/usr\/bin\/ssh -p 22 -o StrictHostKeyChecking=no -l lsyncd -i \/home\/lsyncd\/.ssh\/id_rsa&#8221;<br \/>\n}<br \/>\n}<\/p>\n<p>&#8212;<br \/>\nsync {<br \/>\ndefault.rsync,<br \/>\nsource=&#8221;\/etc\/voip&#8221;,<br \/>\ntarget=&#8221;asterisk1:\/etc\/voip&#8221;,<br \/>\nrsync = {<br \/>\nverbose = true,<br \/>\nacls = true,<br \/>\nrsh = &#8220;\/usr\/bin\/ssh -p 22 -o StrictHostKeyChecking=no -l lsyncd -i \/home\/lsyncd\/.ssh\/id_rsa&#8221;<br \/>\n}<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;-Node1&#8212;- &#8212; User configuration file for lsyncd. &#8212; &#8212; Simple example for default rsync, but executing moves through on the target. &#8212; &#8212; For more examples, see \/usr\/share\/doc\/lsyncd*\/examples\/ &#8212; settings = { logfile = &#8220;\/var\/log\/lsyncd.log&#8221;, statusFile =&#8221;var\/log\/lsyncd.stat&#8221;, statusInterval = 1, insist = true, } sync { default.rsync, source=&#8221;\/etc\/asterisk&#8221;, target=&#8221;asterisk2:\/etc\/asterisk&#8221;, rsync = { verbose = true, &#8230;<\/p>\n<p><a href=\"https:\/\/d1m0.com\/?p=64\" class=\"more-link\">Continue reading &lsquo;simple lsyncd config.&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-64","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=64"}],"version-history":[{"count":2,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":143,"href":"https:\/\/d1m0.com\/index.php?rest_route=\/wp\/v2\/posts\/64\/revisions\/143"}],"wp:attachment":[{"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/d1m0.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}