Rsync Replication: 두 판 사이의 차이

Ubuntu Korea Community Wiki
둘러보기로 이동 검색으로 이동
imported>Drake
(새 문서: == Rsync란? == * 동기화에 최적화되어 있는 프로그램. * 서버는 복사할 소스를 가지고 있고, 클라이언트는 서버로부터 뽑아온다는 내용으로...)
 
imported>Drake
10번째 줄: 10번째 줄:
== 서버 설정 ==
== 서버 설정 ==
* 설정파일 /etc/rsyncd.conf를 다음과 같이 작성한다.
* 설정파일 /etc/rsyncd.conf를 다음과 같이 작성한다.
<source lang="conf">
<source lang="config">
max connections = 2
max connections = 2
log file = /var/log/rsync.log
log file = /var/log/rsync.log

2015년 4월 19일 (일) 12:17 판

Rsync란?

  • 동기화에 최적화되어 있는 프로그램.
  • 서버는 복사할 소스를 가지고 있고, 클라이언트는 서버로부터 뽑아온다는 내용으로 가정한다.

사전준비

  • 프로그램 설치

<source lang="bash"> sudo apt-get install -y rsync </source>

  • tcp 873 포트가 열려있는지 확인한다.

서버 설정

  • 설정파일 /etc/rsyncd.conf를 다음과 같이 작성한다.

<source lang="config"> max connections = 2 log file = /var/log/rsync.log timeout = 300

[share] comment = Ubuntu home path = /home/ubuntu read only = yes uid = ubuntu gid = ubuntu use chroot = yes </source>