Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Howto setup rsync-server?

Got problems with your B2 or B3? Share and get helped!
Post Reply
hakansj
Posts: 8
Joined: 25 Feb 2008, 13:13

Howto setup rsync-server?

Post by hakansj »

I use rsync piped via ssh from Macosx and WIn Xp to my B2. Works perfectly.
Now I also have a Qnap NAS and want to Rsync from this Qnap to my B2. In this case the b2 must have a rsyncd server running.

Anyone that can point me to info on how to configure this?

-Håkan
gonk
Posts: 93
Joined: 30 May 2012, 01:53

Re: Howto setup rsync-server?

Post by gonk »

hakansj wrote:I use rsync piped via ssh from Macosx and WIn Xp to my B2. Works perfectly.
Now I also have a Qnap NAS and want to Rsync from this Qnap to my B2. In this case the b2 must have a rsyncd server running.

Anyone that can point me to info on how to configure this?

-Håkan
This may proove useful:
http://www.linuxawy.org/node/12
Gordon
Posts: 1470
Joined: 10 Aug 2011, 03:18

Re: Howto setup rsync-server?

Post by Gordon »

Here's another howto with some more coverage:
http://www.topwebhosts.org/articles/rsync-backup.php

Can't say that I've ever done it this way, but from the looks of it I think this one should get you the result you're aiming for (I've read some really bad stuff on rsync floating around the net).
hakansj
Posts: 8
Joined: 25 Feb 2008, 13:13

Re: Howto setup rsync-server?

Post by hakansj »

Thanks Gordon,
The content in the article you suggest looks great. §i will give it a try shortly and will post the results
-Håkan
hakansj
Posts: 8
Joined: 25 Feb 2008, 13:13

Re: Howto setup rsync-server?

Post by hakansj »

Success!

This is what I did:

/etc/rsyncd.conf

uid = nobody
gid = nogroup
use chroot = yes
max connections = 4
auth users = my-user-name
secrets file = /etc/rsyncd.secrets
motd file = /etc/rsyncd.motd
log file = /var/log/rsyncd.log

pid file = /var/run/rsyncd.pid
read only = false
# read only false is important. If you forget, the server cannot upload.

[hsj]
path = /home/hsj/rsynctest
comment = Some comment here
________________________
wrote some info in rsyncd.motd and provide user and password in rsyncd.secrets

_______________________

/etc/default/rsync

Changed one line:
#RSYNC_ENABLE=false
RSYNC_ENABLE=true

_______________

Chmod 777 the directory for the server to write to ( in this case rsynctest

_____________________

started the server in the bubba by : service rsync start

______________

Thats it. N ow th Qnap NAS box can run rsync jobs into the bubba

/Håkan
Post Reply