Взято отсюда:
http://forge.novell.com/modules/xfmod/n ... rsync.help
Вот собственно текст:
Subject: Re: Rsync volume a to volume b same server?
From:
n0m@n0m.net (n0m)
Newsgroups: novell.forge.rsync.help
Organization: Novell Inc.
Date: Aug 12 2004 16:38:24
Hi,
I packed the information you need into a file and you can download it in
the next three days at
http://www.n0m.net/download/RSYNC.rar
Following the configuration and how it work (I replaced the names of the
volumes and IP addresses):
1.1 How to handle the file
Download the file and extract it on your SYS volume. Then you
will have a directory structure like this:
SYS:\
|----RSYNC
|------RSYNC
| |------RSYNC.NLM
| |------RSYNC.NLM.MAP
| |------RSYNCD.LOG
| |------RSYNCD.MOTD
| |------RSYNCD.PID
| |------RSYNCDN.NLM
| |------RSYNCSTP.NCF
| |------RSYNCSTR.NCF
| |------SYNCY.NCF
|------ETC
|------RSYNCD.CONF
1.2 What to configure for the target
Open the file SYS:\RSYNC\ETC\RSYNCD.CONF and you will see
something like this:
uid = nobody
gid = nobody
max connections = 0
syslog facility = local5
pid file = SYS:/rsync/rsync/rsyncd.pid
log file = SYS:/rsync/rsync/rsyncd.log
motd file = SYS:/rsync/rsync/rsyncd.motd
timeout = 3600
[TARGET]
path = TARGET:
comment = This is the target volume for RSYNC
read only = no
use chroot = no
timeout = 3600
transfer logging = yes
On the two points where you see "TARGET" type the name of your
volume that will be the target of your synchronisation.
As next open the file SYS:\RSYNC\RSYNC\RSYNCSTR.NCF. There is a
line that ontains the following:
SYS:rsync/rsync/rsync -v --progress --address=192.168.0.1
--config=SYS:/rsync/etc/rsyncd.conf --volume=TARGET: --port=873
--daemon
Please change here the IP address to the one of your server
(maybe you can also use 128.0.01) then cahnge the volume name
to the same volume you defined in SYS:\RSYNC\ETC\RSYNCD.CONF
This mean replace the word "TARGET" again.
Open the file SYS:\RSYNC\RSYNC\RSYNCSTP.NCF and replace the IP
address with the one you have set in
SYS:\RSYNC\RSYNC\RSYNCSTR.NCF.
SYS:/rsync/rsync/rsyncdn Rsync192.168.0.1:873
Important is that you change these values but not the syntax.
1.3 What to configure for the source
Open the file SYS:\RSYNC\RSYNC\SYNCY.NCF it should look like
this:
SYS:rsync\rsync\rsync -vra --delete --volume=SOURCE: DIRECTORY
192.168.0.1::TARGET
Change the word "SOURCE" to the volume name that contains your
source. Then change the word "DIRECTORY" to the directory name
that you want to synchronize. If you want to synchronize the
whole volume just remove the word "DIRECTORY". Change the IP
address to the address you have typed in before in
SYS:\RSYNC\RSYNC\RSYNCSTP.NCF and SYS:\RSYNC\RSYNC\RSYNCSTR.NCF.
Than change the word "TARGET" to the target volume name.
!!! IMPORTANT the switch --delete means, that files that you
delete in your source will be also deleted when you synchronize
the next time, so be carefull.
1.4 Lets get it ON
Type on the system console of your server:
SYS:\RSYNC\RSYNC\RSYNCSTR.NCF
You will now see the RSYNC deamon window now
Change now to the system console again and type in:
SYS:\RSYNC\RSYNC\SYNCY.NCF
You should now see the synchronization in the RSYNC deamon
window.
I hope it work.
Bye