{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/76eb842b26e75ac10be02dbc1645dd37?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"76eb842b26e75ac10be02dbc1645dd37","url":"https://api.github.com/users/axkibe","login":"axkibe","id":495407},"assignee":null,"updated_at":"2011-11-16T15:02:30Z","labels":[{"name":"Priority-Medium","color":"ededed","url":"https://api.github.com/repos/axkibe/lsyncd/labels/Priority-Medium"},{"name":"Type-Defect","color":"ededed","url":"https://api.github.com/repos/axkibe/lsyncd/labels/Type-Defect"}],"closed_at":"2011-11-16T15:02:28Z","comments":4,"url":"https://api.github.com/repos/axkibe/lsyncd/issues/41","body":"Originally filed by golg...@gmail.com on 2011-01-17T20:30:05\n\nHi,\r\n\r\nHere is my lsyncd.conf :\r\n\r\n\r\nsettings = {\r\n  logfile = \"/home/toto/log/lsyncd.log\",\r\n  statusFile = \"/home/toto/log/lsyncd.status\",\r\n}\r\n\r\nsync{\r\n  default.rsyncssh,\r\n  source = \"/home/src/example\",\r\n  host = \"192.168.1.100\",\r\n  targetdir = \"/home/dest/example\",\r\n  exclude = {\"//home/src/example/tmp/**\"}\r\n}\r\n\r\n\r\nLaunched with :\r\n\r\n> lsyncd -nodaemon -log all etc/lsyncd.conf\r\n\r\nI get :\r\n\r\n\r\nExclude: toLuaPattern '//home/src/example/tmp/**' = '^/home/src/example/tmp/.*\"\r\n\r\nSo the pattern looks ok (although I'd suggest let people use real Lua regex patterns, it will make easier for everybody, and allow more possibilities. The translation from your pseudo patterns to Lua patterns is unnecessary in my opinion).\r\n\r\n21:13:23 Function: Inotify.addWatch(/home/src/example/tmp/, (true), (nil), (nil))\r\n21:13:23 Inotify: not concerning '/home/src/example/tmp/'\r\n\r\nSo pattern seems to work. But it is not used in the rsync command :\r\n\r\n\r\n21:13:23 Exec: /usr/bin/rsync [--delete] [-r] [-lts] [/home/src/example/] [192.168.1.100:/home/dest/example/]\r\n\r\nAnd I get many :\r\n\r\nrsync: send_files failed to open \"/home/src/example/tmp/sessions/sess_1234\": Permission denied (13)\r\n\r\nAlthough I told the conf to ignore this directory.\r\n\r\nAm I doing something wrong or is this a bug ?\r\nDo i have to add something specific for the rsync command ? The -exclude-from doesn't seem to exist anymore.\r\n\r\nThanks in advance :)","html_url":"https://github.com/axkibe/lsyncd/issues/41","title":"Exclude doesn't work with rsyncssh","number":41,"id":2257109,"created_at":"2011-11-16T15:02:21Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/76eb842b26e75ac10be02dbc1645dd37?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"76eb842b26e75ac10be02dbc1645dd37","url":"https://api.github.com/users/axkibe","login":"axkibe","id":495407},"updated_at":"2011-11-16T15:02:30Z","url":"https://api.github.com/repos/axkibe/lsyncd/issues/comments/2760459","body":"Updated by axk...@gmail.com on 2011-01-20T20:07:05\n\nfixed with Lsycnd 2.0.2\r\n\r\nThank you for reporting.\n\nOriginal ticket set status to Fixed (we converted to closed)","id":2760459,"created_at":"2011-11-16T15:02:30Z"}}