LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to rsynce the actual directory path instead of just the directory at the end of (https://www.linuxquestions.org/questions/linux-general-1/how-to-rsynce-the-actual-directory-path-instead-of-just-the-directory-at-the-end-of-310965/)

Niceman2005 04-08-2005 01:18 AM

How to rsynce the actual directory path instead of just the directory at the end of
 
Dear friends,

I am trying to figure out what is the problem with this. When I did rsync for the following :
rsync -R -a -e ssh root@172.16.1.251:/etc/host /etc

It gives me the following error:

link_stat "/etc/host" failed: No such file or directory
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)


What is wrong here and how do I solve it?

Thanks for any help, friends.

Niceman2005 04-08-2005 01:21 AM

Dear friends,

Sorry, what I did was
rsync -a -e ssh root@172.16.1.251:/etc/host /etc

not
rsync -R -a -e ssh root@172.16.1.251:/etc/host /etc

but both gave me the same error anyway.

Donboy 04-08-2005 07:50 AM

Isn't the file you want /etc/hosts and not /etc/host? Maybe that's your problem?

trickykid 04-08-2005 09:10 AM

Quote:

Originally posted by Donboy
Isn't the file you want /etc/hosts and not /etc/host? Maybe that's your problem?
That is most likely the problem. I don't know of any Linux systems that have a "host" file in /etc.. just the hosts file :)

Niceman2005 04-08-2005 07:16 PM

Ia m sorry everyone, yes it is my probllem.....

really sorry.....

Donboy 04-08-2005 07:58 PM

Nah... dont worry about it. Happens to the best of us... it's just a sign that you need to stop looking at the screen so hard and go get yourself hammered this weekend.


All times are GMT -5. The time now is 01:31 PM.