LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Rsync Help! (https://www.linuxquestions.org/questions/linux-software-2/rsync-help-193906/)

dlc2000 06-15-2004 04:53 PM

Rsync Help!
 
Hello,

i have install rsync to do a remote backup on a server but i can't get it work, i post my configuration:

rsync.conf:

uid = maddox
gid = maddox
use chroot = no
max connections = 2
syslog facility = rsync
pid file = /etc/rsyncd.pid

[backup]
path=/backup/cpbackup/daily/
comment = Server backup files
auth users = maddox
secrets file = /etc/rsyncd.secrets



/etc/xinetd.d/rsyncd

service rsync
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon

# allow to connect from your second server only
only_from = 111.111.111.111
}


rsyncd.secrets

maddox:1234567


on the other server i have make the .sh file:

#!/bin/bash
rsync --password-file=/etc/rsync.ps -r rsync://maddox@124.124.124/backup/* /path/to/downloaded/backup

rsync.ps

1234567


when i run the .sh file i get the following error:

@ERROR: invalid uid maddox
rsync: connection unexpectedly closed (80 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)

any help?

thank you

Tinkster 06-15-2004 06:25 PM

Re: Rsync Help!
 
Quote:

Originally posted by dlc2000
Code:

#!/bin/bash
rsync --password-file=/etc/rsync.ps -r rsync://maddox@124.124.124/backup/* /path/to/downloaded/backup
                                                      XXXXXXXXXXX


If it's a hostname it's an odd choice :)
It's definitely not a valid IP, though ;)



Cheers,
Tink

dlc2000 06-16-2004 01:15 AM

i know, i have post it as example on the forum, i dont like to post my real ip onthe forum.

Thx


All times are GMT -5. The time now is 07:34 PM.