LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to copy files from one Linux RH Ent 4 server to another? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-copy-files-from-one-linux-rh-ent-4-server-to-another-585884/)

mhall 09-19-2007 02:42 PM

How to copy files from one Linux RH Ent 4 server to another?
 
My servers are amfvm-qad and amfvm-qadtest1. I want to copy files across the VMware environment. I'm really not sure of the correct syntax. Both servers are set up in each server's etc/hosts file. I tried the following but got no such file/directory error:

cp filename amfvm-qad/hd1/db/prod/filename

Thanks,
I'm definately a newbie.

acid_kewpie 09-19-2007 02:48 PM

cp is only for local file systems. you could use NFS or similar to muont the remote filesystem locally and then use those cp commands, but i'd suggest in this instance to use scp instead, assuming that you already know and trust the ssh connectivity:

scp ./filename otherserver:/home/user/filename

for example


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