On Wed, May 5, 2010 at 11:50 AM, mcclnx mcc <mcclnx@yahoo.com.tw> wrote:
> we have two CENTOS 5.X need setup "rsync". *Any one know where have "how to" documents?
>
http://lmgtfy.com/?q=rsync+howto
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
05-05-2010, 04:41 PM
John R Pierce
need document to setup rsync???
mcclnx mcc wrote:
> we have two CENTOS 5.X need setup "rsync". Any one know where have "how to" documents?
>
if you can ssh, you can rsync.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
05-06-2010, 02:06 PM
Alan McKay
need document to setup rsync???
What do you want to rsync from where to where?
It is really easy to set up - in fact I just got done writing an
internal wiki page on how to do a simple setup.
The following is what I use for my kickstart servers so the main
server can rsync itself out to slave servers. This sets up
/var/www/html/ks on the slave server as an rsync share that the master
can write to
Here we use a subdirectory of the main default Apache directory which
is /var/www/html
---snip---
# Set this if you want to stop rsync daemon with rc.d scripts
pid file = /var/run/rsyncd.pid
log file = /var/log/rsyncd.log
# Edit this file before running rsync daemon!!
uid = root
gid = root
#use chroot = no
max connections = 3
#syslog facility = local5
Note in the hosts allow above we put the IP address of the main
kickstart server.
/etc/xinetd.d/rsync
Just update this file and change disable from yes to no
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
Now restart xinetd (and ensure it is turned on by default)
Then on the main server I run a script like this :
for slave in $SLAVES
do
ping -c 3 -w 3 $slave > /dev/null 2>&1
if [ $? -eq 0 ]
then
rsync -avSHP --delete --exclude "local*" --exclude "isos" /data/ks/
rsync://${slave}/ks/
fi
done
--
“Don't eat anything you've ever seen advertised on TV”
- Michael Pollan, author of "In Defense of Food"
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos