Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教:rsync的server是不是和zankv的实例相对应 #73

Open
jony4096 opened this issue Sep 1, 2020 · 2 comments
Open

请教:rsync的server是不是和zankv的实例相对应 #73

jony4096 opened this issue Sep 1, 2020 · 2 comments

Comments

@jony4096
Copy link

jony4096 commented Sep 1, 2020

比如一台物理服务器跑了8个zankv(8个分区),就要有8个rsync --daemon

多谢!

@absolute8511
Copy link

8个分区不一定要8个zankv吧, 可以一个zankv跑多个分区的. 如果一个物理机多个zankv进程, 可以在rsync里面加多个同步目录, 每个目录对应一个zankv配置就行. 比如

       "data_dir":"/data/zankv1",
        "data_rsync_module":"zankv1",

       "data_dir":"/data/zankv2",
        "data_rsync_module":"zankv2",

rsync对应配置

[zankv1]
path = /data/zankv1/
read only = yes
list=yes
exclude = /data/zankv1/myid myid /zankv1/myid

[zankv2]
path = /data/zankv2/
read only = yes
list=yes
exclude = /data/zankv2/myid myid /zankv2/myid

@jony4096
Copy link
Author

jony4096 commented Sep 1, 2020

嗯嗯,多谢多谢,我再琢磨琢磨!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants