[리눅스] rsync 설치
[rsync Server 설치]
[root@sangchul src]# wget http://rsync.samba.org/ftp/rsync/rsync-3.0.7.tar.gz
[root@sangchul src]# tar xvfz rsync-3.0.7.tar.gz
[root@sangchul rsync-3.0.7]# ./configure
[root@sangchul rsync-3.0.7]# make
[root@sangchul rsync-3.0.7]# make install
[root@sangchul rsync-3.0.7]# vi /etc/xinetd.d/rsync
# default: off
# description: The rsync server is a good addition to an ftp server, as it \
# allows crc checksumming etc.
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/local/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
[root@sangchul rsync-3.0.7]#
[root@sangchul rsync-3.0.7]# netstat -an | grep 873
tcp 0 0 0.0.0.0:873 0.0.0.0:* LISTEN
[root@sangchul rsync-3.0.7]# vi /etc/rsyncd.conf
[service]
path = /usr/service
comment = service
uid = root
gid = root
use chroot = yes
read only = yes
hosts allow = 192.168.0.200
max connections = 2
timeout 600
[root@sangchul rsync-3.0.7]#
[rsync Client 설치]
[root@byungun service]# rsync -avz --delete 192.168.0.100::service /usr/service &