rsyncd.conf 파일에 특정 디렉토리 제외하는 설정

  • 등록 2017.07.12 11:47:33
크게보기

rsync를 이용하여 특정 디렉토리 제외하고 동기화 할 때 rsyncd.conf 설정법


# 설정 예
[home]
path = /home
comment = /home
exclude = /user/www.user.com/data/userdata/  <= 이 부분을 추가하면 된다.
uid = root
gid = root
use chroot = yes
read only = yes
hosts allow = 192.168.0.34
timeout = 600

exclude를 추가시 디렉토리 경로는 path 경로를 제외하고 넣어준다.
노랑배 kosthb@gmail.com
Copyright @2011 mediaon Corp. All rights reserved.

사이트에 관련하여 연락은 메일로 주세요. kosthb골뱅이gmail.com Copyright 2011 mediaon. All rights reserved.