Page 1 of 1
Howto setup rsync-server?
Posted: 11 Jul 2012, 03:40
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
Re: Howto setup rsync-server?
Posted: 11 Jul 2012, 04:07
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
Re: Howto setup rsync-server?
Posted: 12 Jul 2012, 03:16
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).
Re: Howto setup rsync-server?
Posted: 12 Jul 2012, 03:26
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
Re: Howto setup rsync-server?
Posted: 12 Jul 2012, 16:07
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