Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to rsync server so please bear with me. I just configured an rsync server that is hosting the files I would like to replicate to a remote machine. Here is the rsyncd.conf file:

max connections = 2
log file = /var/log/rsync.log
timeout = 300

comment = share
path = /mnt/share
read only = no
list = yes
uid = root
gid = root
auth users = rsync
secrets file = /etc/rsyncd.secrets

I create a rsyncd.secrets file which looks like:


After I start the rsync daemon, I issue the following on the remote machine and I see the module

[remoteserver] # rsync  rsync://
share  share

With the following setup, what command do I need to issue on the remote server (or the rsync server?) to sync "share" to the local "/tmp/share" for example.

Would it be something like this?

rsync -rv rsync://rsync@ /tmp/share
share|improve this question
Answered your own question. The syntax of your rsync example is correct for pulling the data from the server and placing it in /tmp/share on the client. – Tim Aug 8 '12 at 17:11
@Tim: when i try that i actually get an error: ssh could not resolve hostname rsync – molecule Aug 8 '12 at 17:19
Don't know how I missed it, drop the rsync://rsync@ part. Should just be rsync -rv /tmp/share – Tim Aug 8 '12 at 17:25
@Tim: Thanks. Now I'm getting another error. auth failed on module share. Do I need to specify the password somewhere? I am not getting a prompt to enter a password on the client where I execute the command. – molecule Aug 8 '12 at 17:27
Does your password file have the correct permissions? Should be 0600 and owned by root. – Tim Aug 8 '12 at 17:38

The syntax is nearly correct, the format of the rsync server URL should be like host_or_ip::share_name.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.