본문 바로가기

Server/Ubuntu

rsync 설정

없을리 없지만 없다면 apt-get install rsync -

motd file = /etc/rsync.motd
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
syslog facility = rsync

rsync server 설정..
[thumb]
comment = Thumbnail
path = /home/_DataDir/data/thumb/2
use chroot = yes
max connections = 10
read only = yes
write only = no
uid = root
gid = root
hosts allow = ip
timeout = 900
dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz

service rsync restart

client 실행
rsync -avzH --delete --progress {server_ip}::{thumb} {client path}