On Thu, Sep 14, 2000 at 03:10:18PM -0400, Hawks, Steven L wrote:
> I would like your opinion on my correctly setting up Rsync on 2 Sun Servers.
> 
> We have:
>       Server1 which has 4 hard drives that show up in the root directory
> as /d001, /d002, /d003 & /d004
> 
>       Server2 which has 4 hard drives that show up in the root directory
> as /d001, /d002, /d003 & /d004
> 
> All file for our website are located on Server1 /d0002
> 
> I want to have rsync duplicate Server1 drive /d002 on Server222 at /d002
> 
> I plan to set up as follows:
> 
> ----------------------------------------------------------------------------
>       #/etc/rsyncd.conf file on Server1
>       motd file = /etc/rsyncd.motd
>       log file = /var/log/rsyncd.log
>       pid file = /var/run/rsyncd.pid
>       lock file = /var/run/rsync.lock
>       
>       [SendServer2]
>          path = /d002
>          comment = Send /d002 to Server2
>       Server2
>          uid = nobody
>          gid = nobody
>          read only = no
>          list = yes
>          auth users = johndoe, janedoe
>          secrets file = /etc/rsyncd.scrt 
> 
> ----------------------------------------------------------------------------
>       # /etc/rsyncs.scrt file on Server1
>       johndoe:xz44zx55
>       janedoe:459966
> ----------------------------------------------------------------------------
> -
> Initiating the rsync transfer with rsync 
> 
> Online Sample
> rsync --verbose  --progress --stats --compress --rsh=/usr/local/bin/ssh
>       --recursive --times --perms --links --delete \
>       --exclude "*bak" --exclude "*~" \
>       /www/* webserver:simple_path_name 
> 
> My Sample - to be ran on Server2
> rsync --verbose  --progress --stats --compress --rsh=/usr/local/bin/ssh
>       --recursive --times --perms --links --delete \
>       --exclude "*bak" --exclude "*~" \
>       /d002/* Server1:/d002
> 
> Question: Can you clarify the last line in this for me?
> 
>  
> 
> Steven Hawks
> NCR Corporation
> IT Services - GAD Sales and Business Infrastructure
> * 1529 Brown St., EMD/4, Dayton, Oh 45479
> * * (937) 445-3946, fax 445-0375, voiceplus 622-3946
> *  [EMAIL PROTECTED]


You also have the confusion between rsync server mode and ssh mode.  From
the syntax you intend to use in rsync, you will be ignoring the rsyncd.conf
file and using ssh only.  If you want to limit what the clients can access
on the server, you can do it with your own script in the ssh authorized_keys
file that checks the parameters given to rsync on the server side.

- Dave Dykstra

Reply via email to