본문 바로가기

반응형

RSYNC

[리눅스] rsync 설치 [rsync Server 설치] [root@sangchul src]# wget http://rsync.samba.org/ftp/rsync/rsync-3.0.7.tar.gz [root@sangchul src]# tar xvfz rsync-3.0.7.tar.gz [root@sangchul rsync-3.0.7]# ./configure [root@sangchul rsync-3.0.7]# make [root@sangchul rsync-3.0.7]# make install [root@sangchul rsync-3.0.7]# vi /etc/xinetd.d/rsync # default: off # description: The rsync server is a good addition to an ftp server, .. 더보기
[리눅스] rsync 서버 설정 rsync 서버 설정 rsync 패키지 확인 # rpm -qa | grep rsync rsync-2.6.3-1 xinetd 패키지 확인 # rpm -qa | grep xinetd xinetd-2.3.13-4.5.el4 rsync를 사용하기 위한 설정 (disable = yes -> disable = no 변경) # cat /etc/xinetd.d/rsync # default: off # description: The rsync server is a good addition to an ftp server, as it \ # allows crc checksumming etc. service rsync { disable = yes socket_type = stream wait = no user = root s.. 더보기
[리눅스] 리눅스 환경에서 rsync 명령어로 데이터 동기화하는 방법 리눅스 환경에서 rsync 명령어로 데이터 동기화하는 방법 테스트 환경 구분 서버 이름 서버 아이피 디렉터리(데이터) 비고 source serv-A 1.1.1.1 /app/file target serv-B 2.2.2.2 /app/file SSH Key 교환 RSA 암호화 방식으로 SSH 공개키와 비공개키를 생성 root@serv-B:file$ ssh-keygen -t rsa SSH 공개키 복사(serv-B -> serv-A 복사) 공개기 복사할 때 패스워드 필요. root@serv-B:file$ ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected] SSH 접속 테스트 root@serv-B:file$ ssh '[email protected]' 데이터 동기화 스크립트 작성 rsync 명령.. 더보기

728x90
반응형