»
S
I
D
E
B
A
R
«
ssh를 이용한 rsync
Sep 2nd, 2009 by sayo

1. source, destination server에 인증key를 등록한다.
이걸 안하면 password를 넣으라는 문구가 뜬다.

$ ssh-keygen -d
Generating public/private dsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_dsa):[press enter here]
Enter passphrase (empty for no passphrase): [press enter here]
Enter same passphrase again: [press enter here]
Your identification has been saved in /home/thisuser/.ssh/id_dsa.
Your public key has been saved in /home/thisuser/.ssh/id_dsa.pub.
The key fingerprint is:
2e:28:d9:ec:85:21:e7:ff:73:df:2e:07:78:f0:d0:a0 thisuser@thishost

$ scp /home/thisuser/.ssh//id_dsa.pub remoteuser@remotehost:/home/thisuser/.ssh/authorized_keys

2. rsync로 싱크를 한다.

$rsync -e ’ssh -ax’ -avz –delete –delete-excluded /home/thisuser/automatic-backup/ remoteuser@remotehost:/home/remoteuser/automatic-backup

3. crontab 에 등록하게 되면 일정한 시간에 자동으로 백업을 진행한다.

개발 프로세스 자동화에 매진하다.
Jul 8th, 2009 by sayo

벌써 개발 프로세스 자동화를 위해서 여러가지 자료도 찾아보고 실험도 해오고 있었다. 이번에 지원도 받고 지지도 얻을 수 있는 환경이 된 김에 자동화를 해보려 도전하고 있다.
자동화해야 하는 프로그랭 언어도 java, flex 등 다양하긴 하지만 모두 테스트 모듈이 존재하고 ant를 사용하면 자동화할 수 있는 영역이다.

힘내서 편하게 일할 수 있는 환경을 만들 수 있으면 좋겠다.

아.. 나의 게으름이란.. 이런 걸 꿈꾼다.

»  Substance: WordPress   »  Style: Ahren Ahimsa