-
Notifications
You must be signed in to change notification settings - Fork 10
remote incremental backup mysqldump directory
Been Kyung-yoon edited this page Dec 8, 2016
·
1 revision
- 원격 증분 백업용 rsnapshot.conf 예제를 확인해 봅니다.
원격 증분 백업 - https://github.com/php79/backup/blob/master/docs/remote-incremental-backup.md
-
backup_script로 시작되는 라인은 백업 대상인 '원격지 서버(192.168.0.102)'에 SSH 로 접속하여 .sh 파일을 실행만 합니다.
backup_script /usr/bin/ssh root@192.168.0.102 "/home/.mysql-backup/php79-remote-mysql-backup.sh" server2/.remote-mysql-backup
-
실행후 원격지 서버(102)의 /home/.mysql-backup/ 아래에 mysql 백업이 생성되고요.
-
다음
backup으로 시작되는 라인을 통해, /home/.mysql-backup/ 을 포함한 /home/ 전체를 백업 서버로 가져오게 됩니다.
backup root@192.168.0.102:/home/ server2/ +rsync_long_args=--bwlimit=4096,+ssh_args=-p 2222
- 즉, 백업 서버에서 mysql 백업은 server2/home/.mysql-backup/ 디렉토리에 존재하게 됩니다.