SSH + rsync 로 백업 하기

· 2015-12-03 (목) 14:55:45 · 1272 · 1

### 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 [email protected]:/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
[email protected]'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개

2015-12-03 (목) 15:14:22
좋은 정보 감사합니다. 앱개발 소모임에 올린 c9.io에서 외부 서버로 연결가능하다고 되어 있는데..

현재 쓰고 계시는 서버와 C9.io와 연동되는 것 데모(동영상)이나 텍스트/사진으로 만들어주세요.
댓글을 작성하시려면 로그인이 필요합니다.

호스팅정보

485건
+
제목 글쓴이 날짜 조회
15-12-10 조회 1,800
15-12-10 조회 1,301
15-12-09 조회 1,180
15-12-09 조회 988
15-12-09 조회 1,082
15-12-08 조회 1,223
15-12-08 조회 979
15-12-08 조회 1,103
15-12-07 조회 1,227
15-12-07 조회 1,463
15-12-07 조회 934
15-12-06 조회 2,302
15-12-05 조회 1,145
15-12-05 조회 1,127
15-12-05 조회 1,371
15-12-05 조회 1,746
15-12-04 조회 1,694
15-12-04 조회 1,622
15-12-04 조회 983
15-12-03 조회 1,273
15-12-03 조회 1,077
15-12-03 조회 1,439
15-12-02 조회 1,839
15-12-02 조회 1,543
15-12-02 조회 1,210
15-12-01 조회 1,350
15-12-01 조회 1,364
15-12-01 조회 1,347
15-12-01 조회 1,425
15-11-30 조회 1,349