settings{
logfile = "/var/log/lsyncd/lsyncd.log",
statusFile = "/var/log/lsyncd/lsyncd.stat",
statusInterval = 2,
}
-- Home
sync{
default.rsync,
source="/home",
target="ro...@10.1.0.1:/home",
delay = 1,
rsync={
compress = true,
verbose = true,
update = true,
perms = true,
owner = true,
group = true,
rsh ="/usr/bin/ssh -p 42 -l root -i /root/.ssh/id_rsa",
}
}
sync{
default.rsync,
source="/var/cpanel/datastore",
target="10.1.0.1:/var/cpanel/datastore",
delay = 1,
rsync={
compress = true,
verbose = true,
update = true,
perms = true,
owner = true,
group = true,
rsh ="/usr/bin/ssh -p 42 -l root -i /root/.ssh/id_rsa",
}
}
sync{
default.rsync,
source="/var/cpanel/databases",
target="10.1.0.1:/var/cpanel/databases",
delay = 1,
rsync={
compress = true,
verbose = true,
update = true,
perms = true,
owner = true,
group = true,
rsh ="/usr/bin/ssh -p 42 -l root -i /root/.ssh/id_rsa",
}
}