{"action":"created","issue":{"url":"https://api.github.com/repos/axkibe/lsyncd/issues/376","repository_url":"https://api.github.com/repos/axkibe/lsyncd","labels_url":"https://api.github.com/repos/axkibe/lsyncd/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/axkibe/lsyncd/issues/376/comments","events_url":"https://api.github.com/repos/axkibe/lsyncd/issues/376/events","html_url":"https://github.com/axkibe/lsyncd/issues/376","id":154614045,"number":376,"title":"Synchronizing multiple directory in multiple server","user":{"login":"stevenhasanuddin","id":19336977,"avatar_url":"https://avatars.githubusercontent.com/u/19336977?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenhasanuddin","html_url":"https://github.com/stevenhasanuddin","followers_url":"https://api.github.com/users/stevenhasanuddin/followers","following_url":"https://api.github.com/users/stevenhasanuddin/following{/other_user}","gists_url":"https://api.github.com/users/stevenhasanuddin/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenhasanuddin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenhasanuddin/subscriptions","organizations_url":"https://api.github.com/users/stevenhasanuddin/orgs","repos_url":"https://api.github.com/users/stevenhasanuddin/repos","events_url":"https://api.github.com/users/stevenhasanuddin/events{/privacy}","received_events_url":"https://api.github.com/users/stevenhasanuddin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-13T01:12:32Z","updated_at":"2016-05-13T07:47:04Z","closed_at":null,"body":"Hi,\r\n\r\nI have managed to synchronize a directory between 3 servers with the following config file,\r\n\r\n```\r\nsettings = {\r\n        logfile = \"/var/log/lsyncd/lsyncd.log\",\r\n        statusFile = \"/var/log/lsyncd/lsyncd-status.log\",\r\n        statusInterval = 1,\r\n}\r\n\r\nserverList = {\r\n \"192.168.1.2:/var/www/html/synchronized\",\r\n \"192.168.1.3:/var/www/html/synchronized\",\r\n}\r\n\r\nfor _, server in ipairs( serverList ) do\r\n  sync{\r\n        default.rsync,\r\n        delete = 'running',\r\n        source=\"/var/www/html/synchronized\",\r\n        target=server,\r\n        delay = 0,\r\n        rsync={rsh =\"/usr/bin/ssh -l steven -i /home/steven/.ssh/id_rsa\", _extra = {\"--chmod=Fo=rw,Fg=rw\"},}\r\n  }\r\nend\r\n```\r\n\r\nThe problem with the config file is that it only synchronize 1 directory whereas I have more than 1 directory that I want to synchronize, all the 3 servers are having the exact same directory tree, is there anyway I could achieve this?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/axkibe/lsyncd/issues/comments/218974324","html_url":"https://github.com/axkibe/lsyncd/issues/376#issuecomment-218974324","issue_url":"https://api.github.com/repos/axkibe/lsyncd/issues/376","id":218974324,"user":{"login":"axkibe","id":495407,"avatar_url":"https://avatars.githubusercontent.com/u/495407?v=3","gravatar_id":"","url":"https://api.github.com/users/axkibe","html_url":"https://github.com/axkibe","followers_url":"https://api.github.com/users/axkibe/followers","following_url":"https://api.github.com/users/axkibe/following{/other_user}","gists_url":"https://api.github.com/users/axkibe/gists{/gist_id}","starred_url":"https://api.github.com/users/axkibe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axkibe/subscriptions","organizations_url":"https://api.github.com/users/axkibe/orgs","repos_url":"https://api.github.com/users/axkibe/repos","events_url":"https://api.github.com/users/axkibe/events{/privacy}","received_events_url":"https://api.github.com/users/axkibe/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T07:47:04Z","updated_at":"2016-05-13T07:47:04Z","body":"Kindly corrected."}}