Data Pool Rsync Administration
General
This page is under construction.
- [#install Software installation]
[wiki:PACS/Pools PACS Pools] Documentation
[wiki:PACS/Rsync Data Pool Rsync Client] Documentation
Overview
Software Installation
The rsync documentation describes how to set-up an rsync daemon. In this section, we give a basic example that does not run as root.
rsyncd.config
rsyncd.secrets
rsyncd
rsyncd.lock
rsyncd.log
rsyncd.pid
Configuration File
# File: configd.rsync # rsync daemon command # rsync --daemon --port=44520 --config=/home/poolman/rsync/configd.rsync # rsync client # rsync -avz --password-file=/local/home/versant/rsync/password --port=445200 nhsc@pacs1.mpe.mpg.de::pools/ /local/home/versant/PacsProductPools secrets file = /home/poolman/rsync/rsyncd.secrets # If you want something to appear when someone logs on, put it in the # rsyncd.motd file #motd file = /home/poolman/rsync/rsyncd.motd lock file = /home/dppool/rsync/rsyncd.lock pid file = /home/dppool/rsync/rsyncd.pid #use chroot = yes read only = yes list = yes uid = poolman gid = users max connections = 2 log file = /home/dppool/rsync/rsyncd.log #log format = %t %a %m %f %b timeout = 300 auth users = mpe, nhsc, leuven hosts allow = herschel6.kluvent.be hcss1.ipac.caltech.edu 139.8.289/8 hosts deny = * [pv] comment = All PV obsid pools path = /pools/pv [pv1] comment = Week 1 pools path = /pools/pv/pv1 [pv2] comment = Week 2 pools path = /pools/pv/pv2 [pvcal] comment = Calibration files contributed by PACS calibration scientists. path = /cal/pv/special
Security
The user names and passwords of agents allowed to access the server are kept in the rsyncd.secrets file. The file protections are set so only the owner can read and write the file. rsyncd.secrets
mpe:password1 leuven:password2 nhsc:password3
Daemon Startup
Here's a simple shell script to start the rsync daemon as a non-root process. It's configured to listen on TCP port 44520. We wait 5 seconds and then check that the server is indeed running. The file's protection is set such that the owner can execute the file. rsyncd
# File rsyncd echo "Starting rsyncd `date`" rsync --daemon --port=44520 --config=/home/poolman/rsync/rsyncd.config & sleep 5 ps -elf | grep 'rsync --daemon' | grep -v grep
Note: Show how to do this with inetd.