Created
August 29, 2011 16:26
-
-
Save tjstein/1178763 to your computer and use it in GitHub Desktop.
lsyncd conf for multiple targets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings = { | |
delay = 1, | |
maxProcesses = 3, | |
logfile = "/var/log/lsyncd.log", | |
} | |
targetlist = { | |
"10.0.1.24:/var/www/thomasjstein.com", | |
"10.0.1.26:/var/www/thomasjstein.com" | |
} | |
for _, server in ipairs(targetlist) do | |
sync{ default.rsync, | |
source="/var/www/thomasjstein.com", | |
rsyncOps="-rltvupgo" | |
target=server | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @oscarsmx , I see the link you post return a 404, can you share it again?
I'm trying to setup a 3 node cluster and I need some files to be sync. I'm trying to archive a master-master kind of configuration