LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   rsync question (https://www.linuxquestions.org/questions/linux-general-1/rsync-question-408678/)

juanb 01-27-2006 02:17 PM

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

TigerOC 01-27-2006 02:50 PM

The command is;

rsync -ave 192.168.1.10:/home/juanb/music1.tar /home/juanb/music1.tar

juanb 01-27-2006 02:55 PM

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

TigerOC 01-27-2006 03:12 PM

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.

juanb 01-28-2006 07:54 AM

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

homey 01-28-2006 08:41 AM

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

juanb 01-28-2006 12:04 PM

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!

homey 01-28-2006 02:34 PM

Does the machine 192.168.1.10 have the music1.tar or is that the machine you want to put the file onto?

juanb 01-28-2006 02:39 PM

the 192.168.1.10 is the machine in which I want to put the file in.

Thanks!

homey 01-28-2006 02:58 PM

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

juanb 01-28-2006 03:18 PM

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 :
juanb:password

/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 !


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