LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-19-2007, 03:42 PM   #1
mhall
LQ Newbie
 
Registered: Jun 2007
Posts: 5

Rep: Reputation: 0
Unhappy 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.
 
Old 09-19-2007, 03:48 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy files from my PC to server anjanesh Linux - Newbie 6 12-30-2005 01:28 AM
how to copy files from a remote server man1979 Linux - General 3 08-16-2005 07:08 AM
how to copy files from my linux server. luqman Red Hat 1 02-24-2005 10:45 AM
copy files from a server to another..both remote Santosh_d Linux - Networking 1 03-09-2004 08:52 AM
Copy files from Linux to Win2K server Urgent adamsjw2 Linux - Networking 12 02-10-2004 06:21 PM


All times are GMT -5. The time now is 07:13 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration