安装lsyncd

Categories: Linux
1. install Lua5.2 2. install rsync-3.1 3. install lsyncd-2.1.6 2.2.3版本在readhat7.1编译失败 cmake -DCMAKE_C_FLAGS=-ldl . make make install 参考github PS: example文件夹下有配置文件 setting{ statusFile="/tmp/lsyncd.stat", statusInterval = 1, logfile="/var/log/lsyncd-status.log", } sync{ default.rsyncssh, source="/root/zx", targetdir="/root/zx", exclude={'*.csv', '*.log', 'build', 'nbproject'}, host="172.30.241.210", delay=2, rsync = { archive=true, compress=false, whole_file=false, }, ssh = { port=22, --identityFile="/root/.ssh/id_rsa.pub", binary="/usr/bin/ssh", }, } sync{ default.rsyncssh, source="/root/zx", targetdir="/cffex/zx", exclude={'*.swx', '*.swp', '*.csv', '*.log', 'build', 'nbproject'}, host="zhx@172.31.197.10", delay=2, rsync = { --rsh="/usr/bin/ssh -l zhx -i /root/.

Read More →