Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-27-2004, 10:20 AM   #1
LQ Newbie
Registered: Mar 2004
Posts: 24

Rep: Reputation: 15
RSync genrates error "connection refused"


I am trying to synchronise a folder in my /home directory to a secondary hard drive mounted as /media using the rsync app. I have gone through the documentation and can't find what I am doing wrong.

I type the command :

rsync -r *.filename pcname:media/

I get the following error :

Connection refused.
Connection unexpectedly closed
Error in rsync protocol data stream (Code12)
Old 07-28-2004, 01:48 AM   #2
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
You are unnecessarily using a syntax that implies the target of the transfer is on a remote machine (i.e., pcname.

Search the man page for the "USAGE" section. Here is the relevant text a couple of paragraphs down:
You can also use rsync in local-only mode, where both the source and
destination don't have a ':' in the name. In this case it behaves like
an improved copy command.
Old 07-28-2004, 03:07 AM   #3
LQ Newbie
Registered: Mar 2004
Posts: 24

Original Poster
Rep: Reputation: 15
If I type rsync /home/filename/ /media/filename/

It gives me :

skipping file /home/filename/
Old 07-28-2004, 04:52 AM   #4
LQ Newbie
Registered: Mar 2004
Posts: 24

Original Poster
Rep: Reputation: 15
I came right.

I typed :

rsync -r /home/Directory /media/



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
ircd.conf: "Connection failed. Error: Connection refused" hamish Linux - Software 3 03-10-2005 08:23 AM
Apache "Connection was refused" remote access error spicychicken Linux - Newbie 7 02-11-2005 01:14 PM
service named error "rndc: conenct failed: connection refused" Reu Linux - General 1 07-12-2004 02:34 PM
Strange "Connection Refused" Error..... tictocdoc Linux - Networking 4 03-29-2004 05:16 PM
Synaptic Error: connection to":0.0" refused by server xsis4me Linux - Software 2 11-18-2003 08:59 PM

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

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