LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-27-2006, 03:17 PM   #1
juanb
Member
 
Registered: May 2002
Posts: 401

Rep: Reputation: 30
rsync question


Hi,

I set up rsync in a FC machine and now trying to transfer files between another linux machine to this FC.

I think I have a syntex error. I want to transfer the file music1.tar to the server and issue this command:

rsync juanb@192.168.1.10 /home/juanb/music1.tar /home/juanb/music1.tar

I get this error:

link_stat "/home/juanb/juanb@192.168.1.10" failed: No such file or directory
rsync error: some files could not be transferred (code 23) at main.c(632)


what am I doing wrong?

thanks

Juan
 
Old 01-27-2006, 03:50 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
The command is;

rsync -ave 192.168.1.10:/home/juanb/music1.tar /home/juanb/music1.tar
 
Old 01-27-2006, 03:55 PM   #3
juanb
Member
 
Registered: May 2002
Posts: 401

Original Poster
Rep: Reputation: 30
still getting an error..

I paste the command u wrote and still getting this:
rsync error: syntax or usage error (code 1) at main.c(816)

should'nt I insert the password some where?

Thanks again,

Juan
 
Old 01-27-2006, 04:12 PM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Try rsync -ave ssh 192.168.1.10:/home/juanb/music1.tar /home/juanb/music1.tar if you have ssh implemented. It will request a password. If you are just wishing to transfer files as opposed to syncing them (rsync) then investigate scp. If you have a kde desktop then you can invoke sftp in konqueror by using doing fish://192.168.1.10 in the address bar and then open a file browser in your home directory and drag and drop files.

Last edited by TigerOC; 01-27-2006 at 04:14 PM.
 
Old 01-28-2006, 08:54 AM   #5
juanb
Member
 
Registered: May 2002
Posts: 401

Original Poster
Rep: Reputation: 30
with fish I get a "stall" error after 1 giga and it stuck but with the rsync command I sucees in login but recive this error messege:

rsync -ave ssh juanb@192.168.1.10:/home/juanb/music1.tar /home/juanb/music1.tar
juanb@192.168.1.10's password:
/usr/X11R6/bin/xauth: timeout in locking authority file /home/juanb/.Xauthority
receiving file list ... link_stat /home/juanb/music1.tar : No such file or directory
done
client: nothing to do: perhaps you need to specify some filenames or the --recursive option?
rsync error: some files could not be transferred (code 23) at main.c(653)

Please help !

Juan
 
Old 01-28-2006, 09:41 AM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
I'm more used to rsyncing directories but I don't repeat the last directory name on the receiving side. For example:

rsync -avz --delete-after -e ssh /mnt/tech/stuff root@mudd:/mnt/tech


In your case, it may look like this....


Code:
rsync -ave ssh juanb@192.168.1.10:/home/juanb/music1.tar /home/juanb
 
Old 01-28-2006, 01:04 PM   #7
juanb
Member
 
Registered: May 2002
Posts: 401

Original Poster
Rep: Reputation: 30
I stil get this error:

[root@juanbox juanb]# rsync -ave ssh juanb@192.168.1.10:/home/juanb/music1.tar /home/juanb
juanb@192.168.1.10's password:
/usr/X11R6/bin/xauth: timeout in locking authority file /home/juanb/.Xauthority
receiving file list ... link_stat /home/juanb/music1.tar : No such file or directory
done
client: nothing to do: perhaps you need to specify some filenames or the --recursive option?
rsync error: some files could not be transferred (code 23) at main.c(653)


Thanks!
 
Old 01-28-2006, 03:34 PM   #8
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Does the machine 192.168.1.10 have the music1.tar or is that the machine you want to put the file onto?
 
Old 01-28-2006, 03:39 PM   #9
juanb
Member
 
Registered: May 2002
Posts: 401

Original Poster
Rep: Reputation: 30
the 192.168.1.10 is the machine in which I want to put the file in.

Thanks!
 
Old 01-28-2006, 03:58 PM   #10
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Quote:
the 192.168.1.10 is the machine in which I want to put the file in.
You need to have the name or ip address of the machine where the file is coming from so it would look something like this....
Code:
rsync -ave ssh juanb@other_machine_ip_address:/home/juanb/music1.tar /home/juanb

the first part is the other machine in this case
juanb@other_machine_ip_address:/home/juanb/music1.tar

the second part is where you are typing in this case
/home/juanb

Last edited by homey; 01-28-2006 at 04:19 PM.
 
Old 01-28-2006, 04:18 PM   #11
juanb
Member
 
Registered: May 2002
Posts: 401

Original Poster
Rep: Reputation: 30
now I get this error:
rsync -ave ssh /home/juanb juab@192.168.1.10:/home/juanb/music1.tar
juab@192.168.1.10's password:
Permission denied, please try again
the content of the files related to rsync are:
/etc/rsyncd.secrets :
juanbassword

/etc/rsyncd.conf :

modulename]

#### rsyncd.conf file ####
uid = juanb
gid = 502
pid file = /etc/rsyncd.pid
syslog facility = daemon
[modulename] #Module name could be any name
path = /home/juanb
comment = user related any info
auth users = anonymous username
hosts allow = 192.168.1.0/24
secrets file =/etc/rsyncd.secrets
max connection = 50
use chroot = true
timeout = 60
#### End of configuration file ####
/etc/rsyncd.pid is empty.

when I ssh to the machine it is the same password as in rsync.secrets and I can log in. I dont know if it metters.

Thanks !
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync --delete question Red Squirrel Linux - Software 2 10-10-2005 10:55 PM
rsync question kpachopoulos Linux - General 3 07-15-2005 04:33 PM
Question about rsync bgriesi Linux - Networking 4 12-31-2004 09:19 AM
Another Rsync question phatboyz Linux - Networking 2 07-02-2004 09:46 AM
rsync question falco365 Programming 4 05-25-2003 10:24 AM


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

Main Menu
Advertisement
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