Create lysyncd.conf
1 parent 25eca60 commit 13dc8447c4638ed38843219e0c1cd0a2ecd5a35a
Leonardus Kristaris Sastra authored on 19 Mar 2020
Showing 1 changed file
View
23
lysyncd.conf 0 → 100644
#!/bin/bash
 
echo "settings {
logfile = "/var/log/lsyncd/lsyncd.log",
statusFile = "/tmp/lsyncd.stat",
statusInterval = 1,
}
sync {
default.rsync,
source = "/var/www/html/wp",
target = "backend2.floss.my.id:/var/www/html/wp",
}
sync {
default.rsync,
source = "/etc/nginx/conf.d/blocks.conf",
target = "backend2.floss.my.id:/etc/nginx/conf.d/",
}
rsync = {
update = true,
perms = true,
owner = true,
group = true," > /etc/lsyncd.conf