10월 22일 서버 점검 안내 (00:00~06:00)
빅

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 [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개

좋은 정보 감사합니다. 앱개발 소모임에 올린 c9.io에서 외부 서버로 연결가능하다고 되어 있는데..

현재 쓰고 계시는 서버와 C9.io와 연동되는 것 데모(동영상)이나 텍스트/사진으로 만들어주세요.
댓글을 작성하시려면 로그인이 필요합니다.
+
제목 글쓴이 날짜 조회
15-12-10 조회 1,819
15-12-10 조회 1,317
15-12-09 조회 1,226
15-12-09 조회 1,003
15-12-09 조회 1,099
15-12-08 조회 1,244
15-12-08 조회 997
15-12-08 조회 1,117
15-12-07 조회 1,246
15-12-07 조회 1,481
15-12-07 조회 953
15-12-06 조회 2,336
15-12-05 조회 1,163
15-12-05 조회 1,144
15-12-05 조회 1,416
15-12-05 조회 1,761
15-12-04 조회 1,712
15-12-04 조회 1,637
15-12-04 조회 1,003
15-12-03 조회 1,294
15-12-03 조회 1,096
15-12-03 조회 1,459
15-12-02 조회 1,856
15-12-02 조회 1,564
15-12-02 조회 1,229
15-12-01 조회 1,368
15-12-01 조회 1,383
15-12-01 조회 1,360
15-12-01 조회 1,444
15-11-30 조회 1,369