Develop/Linux
[Linux] rsync 이용한 데이터 복사
시크라기
2012. 11. 28. 13:39
서버간에 데이터 동기화가 필요할경우 rsync를 사용.
/etc/xinietd.d/rsync 를열어 disable 옵션을 no로 바꾼후 xinetd를 재시작해줌.
이후 /etc/rsyncd.conf 파일을 만들어 설정정보를 넣어줌.
[file] path = [file_path] comment = File server #1 uid = nobody gid = nobody use chroot = yes read only = yes host allow = [host ip] max connection = 1 timeout 300
이후 받는 측에서는
rsync -avz [host_id]::[config id] [dest path]