LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-15-2004, 04:53 PM   #1
dlc2000
LQ Newbie
 
Registered: Jul 2003
Posts: 12

Rep: Reputation: 0
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
 
Old 06-15-2004, 06:25 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
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
 
Old 06-16-2004, 01:15 AM   #3
dlc2000
LQ Newbie
 
Registered: Jul 2003
Posts: 12

Original Poster
Rep: Reputation: 0
i know, i have post it as example on the forum, i dont like to post my real ip onthe forum.

Thx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync sant25 Linux - General 2 09-02-2005 03:34 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM
Rsync help tricky1234 Solaris / OpenSolaris 3 09-07-2004 10:08 AM
rsync-2.4.6-2 santha Linux - Software 1 08-25-2004 04:35 AM
Rsync buttersoft Linux - Software 4 11-05-2003 11:37 AM


All times are GMT -5. The time now is 05:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration