Nas에서 웹 서버와 Rsync를 사용하여 소스코드 동기화 설정(centos7) > 정보공유

본문 바로가기

정보공유

일반글
Server

Nas에서 웹 서버와 Rsync를 사용하여 소스코드 동기화 설정(centos7)

페이지 정보

게시물QR코드

본문

/etc/rsyncd.conf 파일을 다음과 같이 설정한다.

# /etc/rsyncd: configuration file for rsync daemon mode


# See rsyncd.conf man page for more options.


# configuration example:


# uid = nobody

# gid = nobody

# use chroot = yes

# max connections = 4

# pid file = /var/run/rsyncd.pid

# exclude = lost+found/

# transfer logging = yes

# timeout = 900

# ignore nonreadable = yes

# dont compress   = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2


# [ftp]

#        path = /home/ftp

#        comment = ftp export area


# 그누위즈 홈페이지 소스를 nas와 동기화 하려고함.

uid = FTP유저명

gid = FTP유저명

use chroot = yes

max connections = 4

pid file = /var/run/rsyncd.pid

[mymodule]

    path = /home/FTP유저의 디렉터리명

    comment = Your Rsync Module

    read only = no

    list = yes

    auth users = FTP유저명

    secrets file = /etc/rsyncd.secrets



/etc/rsyncd.secrets 파일을 아래와 같이 설정한다.

FTP유저명:FTP접속 패스워드


이후 rsyncd.secrets 파일의 커미션을 600으로 변경한다

chmod 600 rsyncd.secrets

댓글목록

등록된 댓글이 없습니다.

  • Addr.부산광역시 부산진구 중앙대로 666번길 50, 더샵센트럴스타 CEO. 이경애 Email. gnuwiz@naver.com
  • BR. 625-68-00172 TRC. 2019-부산해운대-1186 TEL. 0507-1382-2790
All rights reserved.