LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-29-2004, 11:55 AM   #1
enrique_arong
LQ Newbie
 
Registered: Apr 2004
Posts: 24

Rep: Reputation: 15
Unhappy copying a file


Thank God there is a part here for newbies otherwise I wouldn't ask this.

I got two linux servers, I just want to copy a file from one to another.
I've try the cp command with no luck,

can you help me _?
thank you for your answer


 
Old 07-29-2004, 11:58 AM   #2
CleonII
Member
 
Registered: May 2003
Location: Buenos Aires, Argentina
Distribution: Debian
Posts: 61

Rep: Reputation: 15
you have to use rsync
 
Old 07-29-2004, 12:39 PM   #3
enrique_arong
LQ Newbie
 
Registered: Apr 2004
Posts: 24

Original Poster
Rep: Reputation: 15
error

thank you for your comment, that commad really helped but it is not for me.

this is the line command I used

rsync *.jpg machine:root

and this is the error it gives:

machine: connection refuse

any idea, I already stoped the firewall and still the same error.
 
Old 07-29-2004, 01:01 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
If you're new, you'll find scp a lot easier to use. Rsync is mostly for large scale back-ups and synchronization. Anyhow, to use scp do:

scp /path/to/file user@remotehost:/put/the/file/here

or to get a file from another machine:

scp user@remotehost:/path/to/remote/file /local/path/for/file

Note that you'll need to have sshd running on the remote machine and port 22 unblocked by your firewall.
 
Old 07-29-2004, 01:03 PM   #5
CleonII
Member
 
Registered: May 2003
Location: Buenos Aires, Argentina
Distribution: Debian
Posts: 61

Rep: Reputation: 15
please review your rsyncd.conf
and remember rsync is a service so you have to start it in one of your machines.
 
Old 07-29-2004, 01:21 PM   #6
enrique_arong
LQ Newbie
 
Registered: Apr 2004
Posts: 24

Original Poster
Rep: Reputation: 15
thanks, it worked perfect with the scp command.
 
  


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
File copying questions Jonasx Linux - Newbie 5 01-08-2004 01:38 PM
Question on File System and File Copying hey_joe Linux - Newbie 2 11-05-2003 11:30 AM
copying file ronss Linux - Software 3 08-31-2003 04:04 AM
Copying a File... Nefarious Linux - General 3 11-28-2002 01:23 AM
Copying a file tgonetwork Linux - Newbie 3 01-16-2002 11:08 AM


All times are GMT -5. The time now is 09:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration