linux unison inotify 文件同步

Posted jiafeimao-dabai

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux unison inotify 文件同步相关的知识,希望对你有一定的参考价值。

default.prf

#Unison preferences file 
root = /app/htdocs/project
root = ssh://[email protected]//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

以上是关于linux unison inotify 文件同步的主要内容,如果未能解决你的问题,请参考以下文章

Centos6安装配置Unison+Inotify双向同步

CentOS7.2下unison+inotify的Web目录同步方案

Unison+inotify实现两个主机目录之间的数据双向同步

UNISON+inotify数据的双向实时同步

Rsync+inotify实现文件实时同步

unison做文件双向同步