SSH + rsync 로 백업 하기
### SSH + rsync 로 백업 하기
테스트 환경: a: 172.16.98.130 b:172.16.98.132 vmware , centos5.2
# 설정
a서버: ssh key file 생성
ssh-keygen -d
그냥 엔터
b서버로 복사
cd /root/.ssh/
scp -p root@172.16.98.130:/root/.ssh/id_dsa.pub ./authorized_keys2
# 테스트
a서버 /home/ 자료를 b서버 /home/test 로 옮긴다.
a서버 /home 밑 자료들
[root@localhost home]# ls
1 2 3 byoungguk
rsync -azv -e ssh 172.16.98.130:/home/* /home/test
[root@test1 byoungguk]# rsync -azv -e ssh 172.16.98.130:/home/* /home/test
root@172.16.98.130's password:
receiving file list ... done
1
2
3
sent 86 bytes received 286 bytes 106.29 bytes/sec
total size is 333 speedup is 0.90
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 1개
현재 쓰고 계시는 서버와 C9.io와 연동되는 것 데모(동영상)이나 텍스트/사진으로 만들어주세요.