DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th April 2012
raindog308 raindog308 is offline
Fdisk Soldier
 
Join Date: Sep 2011
Posts: 67
Question 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
I kill -HUP'd inetd and then setup /etc/rsyncd.conf:

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
Over on a Linux box (this is in hosts allow), I did this:

Code:
rsync --verbose --progress --stats --compress --recursive --times --perms --links --delete someserver.example.com::stuff .
But got:

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]
An identical rsyncd.conf and rsync client command works Linux-to-Linux, though in that case it's xinetd not inetd. I'm wondering if there is something BSD-specific?

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.
Reply With Quote
  #2   (View Single Post)  
Old 26th April 2012
raindog308 raindog308 is offline
Fdisk Soldier
 
Join Date: Sep 2011
Posts: 67
Default

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.
Reply With Quote
  #3   (View Single Post)  
Old 30th June 2012
Stone Stone is offline
New User
 
Join Date: Jun 2012
Posts: 1
Default

Quote:
Originally Posted by raindog308 View Post
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.
Reply With Quote
  #4   (View Single Post)  
Old 23rd April 2016
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

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?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 05:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick