BLOG main image
분류 전체보기 (368)
IT (67)
끄적거린수필 (147)
경제의이해 (13)
Wow! (43)
리뷰 (10)
사진과 그 순간 기억 (60)
인상깊은 구절 (21)
자료실 (4)
English (3)
At our great submitting articl..
06:13 - submit articles
좋은 게시물, 공유를위한 감사합..
05/11 - china wholesale
If you are willing to know mor..
04/29 - custom thesis
We could get custom dissertati..
04/29 - thesis
I know that a lot of custom th..
04/26 - dissertation writing service
Different students want to fin..
04/26 - dissertation
You know the style of your cod..
02/28 - descriptive essay
I understand you for sure - it..
02/28 - book report writer
I think you have really good i..
02/28 - homework helper
To my mind this new thing shou..
02/28 - obama speech
엔컴퓨팅 무슨 회사냐 하시는 분..
Welcome to the NComputing World
10월 13일 무한도전 - 환장의 짝..
Nothing is impossable in this..
해커와 화가...
괴짜 프로그래머의 일상사~@@
재테크 열풍 속에서 우리는 무엇..
Miracler's Blog Life~
270,232 Visitors up to today!
Today 3 hit, Yesterday 41 hit
daisy rss
tistory 티스토리 가입하기!
2008/07/24 15:52

1. apt-get install rsync 명령을 통해 rsync를 설치해준다.

2. apt-get install xinetd 명령을 통해 xinetd를 설치해준다.

3. /etc/xinetd/rsync 파일을 다음과 같이 추가한다.

# default: off
# description: The rsync server is a good addition to an ftp server, as it \
#   allows crc checksumming etc.
service rsync
{
    disable
= no
    socket_type    
= stream
    wait            
= no
    user            
= root
    server          
= /usr/bin/rsync
    server_args    
= --daemon
    log_on_failure  
+= USERID
}

4. /etc/init.d/xinetd restart를 통해 재시작해준다.

5. /etc/rsyncd.conf 파일을 다음과 같이 추가한다.

[Destination]
path
= /home/destination
comment
= server
uid
= nobody
gid
= nobody
use chroot = yes
read only
= yes
host allow
= 192.168.0.3
max connection
= 1
timeout
300

각자의 내용에 맞게 수정한다.

path : 공유할 디렉토리
comment : 설명
uid : 접근할 user id
gid : 접근할 group id
use chroot : chroot를 사용할지 여부, 특별한 이유가 없는 이상 꼭 사용할 것
read only : 읽기만 가능할 것인지, 백업의 피 대상이므로 yes로 설정
host allow : 접근 가능한 호스트 설정. 백업서버만 접근 가능하도록 설정
max connection : 최대 몇개의 커넥션을 연결할 수 있는지 설정
timeout : 타임아웃 시간 설정


6. 다음 명령을 통해 끌어온다.

rsync -avz 서버IP::Destination 백업받을위치

퍼미션 에러가 난다면 적절히 uid와 gid를 수정해서 백업대상 폴더의 권한을 획득할 수 있도록 해준다.

Trackback Address :: http://www.coveredjin.com/trackback/362 관련글 쓰기
Name
Password
Homepage
Secret