lsyncd 간단 설정
설명에 앞서)
rsyncd 는 설치가 되어 있어야 하며 실행되고 있지 않아도 됩니다.
아래와 같이 두대의 서버가 있다고 가정합니다.
원래 서버 original --> A서버
백업 서버 backup --> B서버
A서버의 lsyncd.conf 설정 (/etc/lsyncd.conf)
settings {
logfile="/var/log/lsyncd/lsyncd.log",
statusFile="/var/log/lsyncd/lsyncd-status.log"
}sync {
default.rsync,
source="/home",
target="root@B서버아이피주소:/home_backup"
}
A서버에서 암호 없이 B서버에 접근하기 위해 SSH key 만들기
# ssh-keygen
# ssh-copy-id root@B서버아이피주소
# systemctl restart lsyncd
B서버에서 /home_backup 에 복사가 잘 되고 있는지 확인합니다.
ps) lsyncd.conf 설정은 인터넷을 검색하여 이것 저것 활용해 보세요.
-끝-
댓글 1개
5년 전
/var/log/lsyncd/lsyncd.log 에서 다음과 같은 로그가 나온다면
Error: Terminating since out of inotify watches.
구글에서 검색으로 해결 바랍니다.
예)
echo 100000 > /proc/sys/fs/inotify/max_user_watches
Error: Terminating since out of inotify watches.
구글에서 검색으로 해결 바랍니다.
예)
echo 100000 > /proc/sys/fs/inotify/max_user_watches
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4736 | jQuery | 8년 전 | 1562 | ||
| 4735 | jQuery | 8년 전 | 1753 | ||
| 4734 | jQuery | 8년 전 | 1742 | ||
| 4733 | jQuery | 8년 전 | 2036 | ||
| 4732 | jQuery | 8년 전 | 1959 | ||
| 4731 | jQuery | 8년 전 | 1461 | ||
| 4730 | jQuery | 8년 전 | 1920 | ||
| 4729 | PHP |
|
8년 전 | 6906 | |
| 4728 | jQuery | 8년 전 | 2563 | ||
| 4727 | jQuery | 8년 전 | 1612 | ||
| 4726 | jQuery | 8년 전 | 1692 | ||
| 4725 | jQuery | 8년 전 | 1835 | ||
| 4724 | jQuery | 8년 전 | 1313 | ||
| 4723 | jQuery | 8년 전 | 1865 | ||
| 4722 | jQuery | 8년 전 | 1630 | ||
| 4721 | jQuery | 8년 전 | 1919 | ||
| 4720 | jQuery | 8년 전 | 1981 | ||
| 4719 | jQuery | 8년 전 | 1604 | ||
| 4718 | jQuery | 8년 전 | 1610 | ||
| 4717 | jQuery | 8년 전 | 1561 | ||
| 4716 | jQuery | 8년 전 | 1240 | ||
| 4715 | jQuery | 8년 전 | 1397 | ||
| 4714 | jQuery | 8년 전 | 1420 | ||
| 4713 | jQuery | 8년 전 | 1339 | ||
| 4712 | jQuery | 8년 전 | 2230 | ||
| 4711 | jQuery | 8년 전 | 1717 | ||
| 4710 | PHP |
|
8년 전 | 3748 | |
| 4709 | jQuery | 8년 전 | 1630 | ||
| 4708 | jQuery | 8년 전 | 1912 | ||
| 4707 | jQuery | 8년 전 | 1768 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기