{"action":"closed","issue":{"url":"https://api.github.com/repos/axkibe/lsyncd/issues/451","repository_url":"https://api.github.com/repos/axkibe/lsyncd","labels_url":"https://api.github.com/repos/axkibe/lsyncd/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/axkibe/lsyncd/issues/451/comments","events_url":"https://api.github.com/repos/axkibe/lsyncd/issues/451/events","html_url":"https://github.com/axkibe/lsyncd/issues/451","id":233498597,"number":451,"title":"Using Excludes with Shell Scripts?","user":{"login":"delmartechdude","id":7036082,"avatar_url":"https://avatars3.githubusercontent.com/u/7036082?v=4","gravatar_id":"","url":"https://api.github.com/users/delmartechdude","html_url":"https://github.com/delmartechdude","followers_url":"https://api.github.com/users/delmartechdude/followers","following_url":"https://api.github.com/users/delmartechdude/following{/other_user}","gists_url":"https://api.github.com/users/delmartechdude/gists{/gist_id}","starred_url":"https://api.github.com/users/delmartechdude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delmartechdude/subscriptions","organizations_url":"https://api.github.com/users/delmartechdude/orgs","repos_url":"https://api.github.com/users/delmartechdude/repos","events_url":"https://api.github.com/users/delmartechdude/events{/privacy}","received_events_url":"https://api.github.com/users/delmartechdude/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-05T05:37:11Z","updated_at":"2018-03-09T16:46:34Z","closed_at":"2018-03-09T16:46:34Z","author_association":"NONE","body":"So I'm currently doing my rsyncs via a wrapper shell script because I wanted to use some rsync arguments that lsyncd doesn't support like `--filter`, which is actually quite different apparently from `exclude` Everything is working great, except that lsyncd is triggering the scripts on files that I really want filtered out. Nothing is getting synced because of the filters I have in place in my rsync commands in the script, but I would rather not have lsyncd busy all the time if it doesn't need to be. I also want the stuff I care about to get synced faster, instead of having to wait on lsyncd to stop \"Retrying Modify\" on the files I don't care about. I know if I was using exclude that it wouldn't be doing that, but since using the built-in rsync in lsyncd isn't an option for me, how can I exclude lsyncd from watching certain directories?\r\n\r\nMy current lua config file:\r\n```\r\nsettings{\r\n  statusFile = \"/tmp/lsyncd.stat\",\r\n  logfile = \"/var/log/lsyncd/lsyncd.log\",\r\n  statusInterval = 1,\r\n  insist = true\r\n}\r\n\r\ncore = {\r\n  delay = 1,\r\n  maxProcesses = 1,\r\n  onCreate = \"./opt/dosync.sh s\",\r\n  onModify = \"./opt/dosync.sh s\",\r\n  onDelete = \"./opt/dosync.sh s\",\r\n  onMove   = \"./opt/dosync.sh s\",\r\n  onStartup = \"./opt/dosync.sh s\"\r\n}\r\n\r\nrep = {\r\n  delay = 1,\r\n  maxProcesses = 1,\r\n  onCreate = \"./opt/dosync.sh m\",\r\n  onModify = \"./opt/dosync.sh m\",\r\n  onDelete = \"./opt/dosync.sh m\",\r\n  onMove   = \"./opt/dosync.sh m\",\r\n  onStartup = \"./opt/dosync.sh m\"\r\n}\r\n\r\n\r\n\r\nsync{ core, source = \"/opt/git-root/core\"}\r\nsync{ rep, source = \"/opt/rep\"}\r\n```"}}
{"actor":{"display_login":"axkibe"}}