|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|
|||
Setting up OpenBSD rsync server...how?
I'm trying to setup an OpenBSD box to act as an rsync server.
I installed the rsync package, then put this in /etc/inetd.conf: Code:
rsync stream tcp nowait root /usr/local/bin/rsync --daemon Code:
max connections = 1 log file = /var/log/rsync.log timeout = 300 [stuff] comment = some server stuff path = /stuff read only = yes list = yes uid = root gid = root hosts allow = 1.2.3.4/32 exclude from = /etc/rsync_exclude.txt Code:
rsync --verbose --progress --stats --compress --recursive --times --perms --links --delete someserver.example.com::stuff . Code:
rsync: server sent "rsync version 3.0.8 protocol version 30" rather than greeting rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6] Given that error, looks to me like the client can talk to port 873 (and pf has not been setup yet), so I don't think it's a firewall issue. I also took out the hosts allow line and it didn't make a difference. |
|
|||
As an update...if I kill inetd entirely and run rsync --daemon to run rsync as a standalone daemon, it works fine.
But of course, it'd be nice to have it run nicely alongside inetd. |
|
|||
Hi Raindog, I met the same issue with you, and wonders if there is another way to start rsync at systm startup rather than start in inted. Thanks.
|
|
||||
Is there an rsync set up How-To for a recent version of OpenBSD? I found "Using rsync to synchronize or mirror your home directory files to an USB stick" but that doesn't cover rsyncd server configuration.
The port includes surprisingly little set up support. No examples in: /usr/local/share/doc/pkg-readmes /usr/local/share/doc/rsync /etc/examples Since (thankfully) there is an /etc/rc.d/rsyncd script, I guess a typical setup would include an /etc/rsyncd.conf, an "rsyncd_flags=" entry in /etc/rc.conf.local, and then any other scripts or convenient aliases for a few typical use cases. Does anyone know if this information is consolidated anywhere? If not, do-you-want-to/will-you post your research, setup (examples), experiences, and/or suggestions? |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Advice on setting up blogging on a FBSD server | Mantazz | FreeBSD Ports and Packages | 8 | 25th January 2011 11:28 PM |
Remote backups server using FreeBSD, ZFS, and Rsync | phoenix | Guides | 1 | 5th March 2010 12:17 AM |
rsync freebsd server/windows client | Weaseal | FreeBSD General | 0 | 27th August 2008 12:29 AM |
setting up a proxy server in OpenBSD 4.3 | jrake | OpenBSD General | 1 | 14th May 2008 06:43 PM |