{"id":739,"date":"2016-08-08T12:17:54","date_gmt":"2016-08-08T11:17:54","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=739"},"modified":"2016-08-10T17:46:57","modified_gmt":"2016-08-10T16:46:57","slug":"adding-excludes-lsyncd","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/08\/08\/adding-excludes-lsyncd\/","title":{"rendered":"Adding some excludes for Lsyncd"},"content":{"rendered":"<p>A customer was having some issues with their syncing, as was shown by their inotify <\/p>\n<pre>\r\nError: Terminating since out of inotify watches.\r\nConsider increasing \/proc\/sys\/fs\/inotify\/max_user_watches\r\n<\/pre>\n<p>Fix was quite simple, to remove other folders from sync that aren&#8217;t necessary.<\/p>\n<p>Adding this line to the \/etc\/lsyncd.conf <\/p>\n<pre>\r\nexcludeFrom=\"\/etc\/lsyncd-excludes.txt\",\r\n<\/pre>\n<p>And creating the &#8216;excludes&#8217; file for LsyncD, i.e. what folders you want to ignore, in this case we wanted to ignore old httpdocs.OLD backup.<\/p>\n<pre>\r\n# cat \/etc\/lsyncd-excludes.txt\r\nsomewebsite.com\/httpdocs.OLD\/\r\n<\/pre>\n<p>A shockingly simple fix.<\/p>\n<p>Please note that the path in lsyncd-excludes.txt is determined by the path in lsyncd. (do not give full path, give relative path inside the parent). It was a simple fix.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A customer was having some issues with their syncing, as was shown by their inotify Error: Terminating since out of inotify watches. Consider increasing \/proc\/sys\/fs\/inotify\/max_user_watches Fix was quite simple, to remove other folders from sync that aren&#8217;t necessary. Adding this &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/08\/08\/adding-excludes-lsyncd\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/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":[42,56,64],"tags":[],"class_list":["post-739","post","type-post","status-publish","format-standard","hentry","category-automation","category-autoscale","category-lsyncd"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=739"}],"version-history":[{"count":2,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/739\/revisions"}],"predecessor-version":[{"id":747,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/739\/revisions\/747"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}