Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: adolfas on September 21, 2004, 02:34:06 PM

Title: rsync
Post by: adolfas on September 21, 2004, 02:34:06 PM
I need to config rsyncd.conf but I cant find it on /etc/rsyncd.conf or anywhere. Is it installed by default and I just cant find it, or I have to install it by myself?
Title: rsync
Post by: ldkeen on September 22, 2004, 02:00:39 AM
What about:
#/usr/bin/rsync --daemon --config=myrsync.conf
You can then modify your own conf file.
Lloyd
Title: rsync
Post by: adolfas on September 22, 2004, 03:39:20 PM
Still a bit complicated for me. Ive installed rsync, but still cant find rsync.conf.
Title: rsync
Post by: duncan on September 23, 2004, 08:54:03 AM
pico /etc/rsyncd.conf

Add something like this

Code: [Select]
uid = nobody
gid = nobody
use chroot = no
strict modes = false

hosts allow=10.0.0.0/255.255.255.0
hosts deny=*

max connections = 15
pid file = /var/run/rsyncd.pid
log file = /var/log/rsync.log


[someone]
    comment = client1 backup
    path = /home/e-smith/files/users/someone/home
    read only = no
    list = no
    uid = someone
    gid = 0

[clients_logs]
    comment = Client logs
    path = /home/e-smith/files/ibays/nas/files/clients_logs
    read only = no
    list = no
    uid = 0
    gid = 0
    auth users = someone
    secrets file = /etc/rsyncd.secrets

[clients_settings]
    comment = Client phase and include/exclude files
    path = /home/e-smith/files/ibays/nas/files/clients_settings
    read only = no
    list = no
    uid = 0
    gid = 0
    auth users = someone
    secrets file = /etc/rsyncd.secrets



pico /etc/rsyncd.secrets

And add per user. (You must do a carriage return after the last password otherwise you will end up with AUTH errors)

Code: [Select]
someone:somepassword

Then

/usr/bin/rsync --daemon to start. You need to create an ibay - I named mine nas.
Title: rsync
Post by: adolfas on September 28, 2004, 12:20:35 PM
I did everythink, but I still get error:

Starting Backup

Working on: C:\Downloads
@ERROR: access denied to user from pc-00014.mydomain.lt (192.168.0.14)
rsync: connection unexpectedly closed (91 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)

Backup summary report:
C:\Downloads : Failure, error code: 12

Uploading log to the server
Title: rsync
Post by: duncan on September 28, 2004, 12:35:02 PM
Which generally means that you do not have a new line after the last password in /etc/rsyncd.secrets.

Just position the cursor after the last letter. Hit the delete key to remove any white spaces and then hit the enter once to wrap to the next line. Save the file and try again.
Title: rsync
Post by: adolfas on October 04, 2004, 12:08:40 PM
now I get another error:

Starting Backup

Working on: C:\Downloads
rsync: failed to connect to 192.168.0.124: Connection refused
rsync error: error in socket IO (code 10) at clientserver.c(97)

Backup summary report:
C:\Downloads : Failure, error code: 10

Uploading log to the server
Title: rsync
Post by: irian on October 06, 2004, 02:26:58 PM
are you using rsync with ssh?

if so, be sure that you have ssh configured
see the man rsync page
Title: rsync
Post by: adolfas on October 07, 2004, 01:28:14 PM
I have a question:
Im using it on my test server. Do I have to use rsync as on remote server, using ssh?