Created
June 21, 2012 00:14
-
-
Save DavidWittman/2963087 to your computer and use it in GitHub Desktop.
Lsyncd alternate SSH key
This file contains 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 = { | |
logfile = "/var/log/lsyncd/lsyncd.log", | |
statusFile = "/var/log/lsyncd/lsyncd-status.log", | |
statusInterval = 20 | |
} | |
servers = { | |
"web02", | |
"web03" | |
} | |
for _, server in ipairs(servers) do | |
sync { | |
default.rsync, | |
source="/var/www/", | |
target=server..":/var/www/", | |
rsyncOpts={"-e", "/usr/bin/ssh -i /root/.ssh/other_id_rsa -o StrictHostKeyChecking=no", "-avz"} | |
} | |
sync { | |
default.rsync, | |
source="/etc/apache2/", | |
target=server..":/etc/apache2/", | |
rsyncOpts={"-e", "/usr/bin/ssh -i /root/.ssh/other_id_rsa -o StrictHostKeyChecking=no", "-avz"} | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment