linux unison inotify 文件同步
default.prf
#Unison preferences file root = /app/htdocs/project root = ssh://bug@192.168.0.1//app/htdocs/project servercmd = /usr/local/bin/unison #force = true ignore = Path Application/Runtime ignore = Path Uploads/Home batch = true maxthreads = 300 #repeat = 1 #retry = 3 owner = true group = true perms = -1 fastcheck = false rsync = false sshargs = -C xferbycopying = true log = true logfile = /home/bug/.unison/unison.log
参考配置链接:https://blog.csdn.net/gw85047034/article/details/52064907
unison inotify安装目录 /usr/local/bin /root/bin
配置密钥 /home/hgx/.ssh
配置文件 /home/hgx/.unison