티스토리 뷰
* rsync setup summary (need root permission)
- rsync service config
- vi /etc/xinetd.d/rsync
service rsync
{
disable = yes no로 설정
......
}
- rsync folder setting
- vi /etc/rsyncd.conf
- http://www.samba.org/ftp/rsync/rsyncd.conf.html
[data] ## name
path = /home1/user/ ## file path
comment = user
uid = user
gid = user
use chroot = yes
read only = yes
hosts allow = 127.0.0.1, 192.168.10.0/24
max connections = 5
- service restart
- /etc/init.d/xinetd restart
* rsync iptable setup
- /sbin/iptables -A INPUT -p tcp --dport 873 -j ACCEPT
* ssh
- ssh-keygen -t rsa 로 생성한 key를 server / client 각각 설정
- http://lesstif.com/pages/viewpage.action?pageId=12943452
* rsync sample
- download
- rsync -avz -e ssh --delete {serverip}:{rsync folder}/file
rsync -avz -e ssh --delete 192.168.0.1:data/file /home1/download/
rsync -avz -e ssh --delete 192.168.0.1:data/folder/ /home1/download/
'Tech > Server ops' 카테고리의 다른 글
Powershell로 원격 서버 관리하기 (0) | 2013.11.25 |
---|---|
Windows 심볼릭 링크 (0) | 2013.11.25 |
윈도우 7 or 비스타 설치후 XP를 설치했는데 XP로만 부팅되는 경우 (0) | 2013.11.25 |
- Total
- Today
- Yesterday
- mediastreamvalidator
- 연성결
- 백마소서풍
- 스웰시즌
- http live streaming
- 왕좌의 게임
- THE SWELL SEASON
- srand
- ONCE
- game of thrones
- 원양도
- swell
- 홍대앞 놀이터
- 정규분포
- tcp_retries2
- 홍대 프리마켓
- 원스
- 월녀검
- 메르센 트위스터
- 백혈검
- rsync
- 공연후기
- Mersenne Twister
- 서검은구록
- CLOSE_WAIT
- 협객행
- Marketa Irglova
- Glen Hansard
- rand
- 설산비호