• Home
  • Real-time two way file synchronization on Centos

Real-time two way file synchronization on Centos

November 6, 2017 Ning 0 Comments
yum -y install lsyncd
 vi /etc/lsyncd.conf
settings  {
 logfile = "/var/log/lsyncd.log",
 statusFile = "/var/log/lsyncd.stat",
 statusInterval = 2,
}
sync {
 default.rsync,
 source="/home/ning/cloud/",
 target="/home/ning/www/"
}

sync {
 default.rsync,
 source="/home/ning/www/",
 target="/home/ning/cloud/"
}

leave a comment

*