티스토리 뷰

AWS

IDC -> aws 실시간 sync (lsync)

fendys 2022. 3. 16. 11:20
반응형

조건

  • 실시간 싱크
  • IDC Server → AWS Migration Server로 단방향 싱크
  • Lsync 사용
  • diagram

  • migration data info
    • src (IDC Server) : 192.168.0.1:/data/data_stage
    • dst (AWS EC2) : /migration
  • lsyncd config
settings {
        logfile="/var/log/lsyncd/lsyncd.log",
        statusFile="/var/log/lsyncd/lsyncd-status.log",
        statusInterval = 60
        }
 
sync {
        default.rsyncssh,
        source="/data/data_stage",
        host="fendys@10.20.30.40",
        targetdir="/migration",
        delete=flse,
        rsync = {
                _extra = {"--bwlimit=1024000"}
                }
        }
반응형

'AWS' 카테고리의 다른 글

aws s3 bucket lifecycle set  (0) 2023.07.12
install on centos7 + docker +awx 17.1.0  (0) 2022.06.02
AWS Root - Yubikey  (0) 2022.01.30
multi account EFS mount 이중화 방법  (0) 2021.11.16
Role aws efs acl set  (0) 2021.10.22