기타

rsync 사용

세모데 2019. 2. 11. 11:11

# local 복사 (NAS 사용)

rsync -avp -o "mysql" -p "mysql" -P /data/mysql    /mig    (동일한 정보로 copy : avprP)

rsync --bwlimit 50000  -avpog -P -n /data/mysql   /mig  (대역폭 제한 50mb)

 

# remote 복사 

rsynbc -avg -p /data/mysql  10.10.10.10::R

(remote 쪽에서 rsync 허용 IP/ User/디렉토리 설정이 필요)