—-Node1—-
— User configuration file for lsyncd.
—
— Simple example for default rsync, but executing moves through on the target.
—
— For more examples, see /usr/share/doc/lsyncd*/examples/
—
settings = {
logfile = “/var/log/lsyncd.log”,
statusFile =”var/log/lsyncd.stat”,
statusInterval = 1,
insist = true,
}
sync {
default.rsync,
source=”/etc/asterisk”,
target=”asterisk2:/etc/asterisk”,
rsync = {
verbose = true,
acls = true,
rsh = “/usr/bin/ssh -p 22 -o StrictHostKeyChecking=no -l lsyncd -i /home/lsyncd/.ssh/id_rsa”
}
}
—
sync {
default.rsync,
source=”/etc/voip”,
target=”asterisk2:/etc/voip”,
rsync = {
verbose = true,
acls = true,
rsh = “/usr/bin/ssh -p 22 -o StrictHostKeyChecking=no -l lsyncd -i /home/lsyncd/.ssh/id_rsa”
}
}
—
—Node2—
—-
— User configuration file for lsyncd.
—
— Simple example for default rsync, but executing moves through on the target.
—
— For more examples, see /usr/share/doc/lsyncd*/examples/
—
settings = {
logfile = “/var/log/lsyncd.log”,
statusFile =”var/log/lsyncd.stat”,
statusInterval = 1,
insist = true,
}
sync {
default.rsync,
source=”/etc/asterisk”,
target=”asterisk1:/etc/asterisk”,
rsync = {
verbose = true,
acls = true,
rsh = “/usr/bin/ssh -p 22 -o StrictHostKeyChecking=no -l lsyncd -i /home/lsyncd/.ssh/id_rsa”
}
}
—
sync {
default.rsync,
source=”/etc/voip”,
target=”asterisk1:/etc/voip”,
rsync = {
verbose = true,
acls = true,
rsh = “/usr/bin/ssh -p 22 -o StrictHostKeyChecking=no -l lsyncd -i /home/lsyncd/.ssh/id_rsa”
}
}