Setup RSYNC Server
|
yum install rsync
vi /etc/rsyncd.conf
[data]
path = /somepath
comment = Whatever
uid = apache
gid = apache
read only = false
auth users = someuser
secrets file = /etc/rsyncd.pass
hosts allow = 192.168.1.27
# note 'someuser' doesn't have to be a system user, its only for rsync
vi /etc/rsyncd.pass
someuser:pass
chmod 600 /etc/rsyncd.pass
rsync --daemon
Done!
To connect and transfer files..
rsync -av /some/path rsync://someuser@yourserver/somepath/
|
Tags: rsync |
|
|
Back