Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started 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?
-
What about:
#/usr/bin/rsync --daemon --config=myrsync.conf
You can then modify your own conf file.
Lloyd
-
Still a bit complicated for me. Ive installed rsync, but still cant find rsync.conf.
-
pico /etc/rsyncd.conf
Add something like this
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)
someone:somepassword
Then
/usr/bin/rsync --daemon to start. You need to create an ibay - I named mine nas.
-
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
-
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.
-
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
-
are you using rsync with ssh?
if so, be sure that you have ssh configured
see the man rsync page
-
I have a question:
Im using it on my test server. Do I have to use rsync as on remote server, using ssh?