Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Copying files between two computer?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Evangelion
Veteran
Veteran


Joined: 31 May 2002
Posts: 1087
Location: Helsinki, Finland

PostPosted: Tue Dec 10, 2002 6:38 pm    Post subject: Copying files between two computer? Reply with quote

What is the most convenient way to copy files between two computers? Of course, I could use NFS, but I think that would be a bit overblown in my case. I just need to occasionally copy one or two files from one workstation to another.
Back to top
View user's profile Send private message
Cuboid
n00b
n00b


Joined: 02 Oct 2002
Posts: 15

PostPosted: Tue Dec 10, 2002 6:49 pm    Post subject: Rsync is pretty easy Reply with quote

You can archive and restore from one machine to another pretty easily with Rsync. The advantage of this is that it copies only changes to files so is fairly fast/efficient.

If your worried about security you can use SSH with Rsync as well.

Something like:

rsync -az -v -e ssh Documents/ user@destination:Documents

Will archive the contens of Documents folder to the same folder in the user account on the destination machine using ssh.

For one of transfers you can use SCP, i.e. secure copy quite easily as well
Back to top
View user's profile Send private message
equilian
n00b
n00b


Joined: 27 Apr 2002
Posts: 41
Location: Cambridge,MA

PostPosted: Tue Dec 10, 2002 6:58 pm    Post subject: Reply with quote

You may also want to take a look at scp. It's what I use to tranfer files across the network. The man page should be adequate in explaining it's usage.

Abraham
_________________
"To announce there must be no criticism of the president, or that we are
to stand by the president, right or wrong, is not only unpatriotic and servile,
but is morally treasonable to the American public."

-Theodore Roosevelt
Back to top
View user's profile Send private message
Evangelion
Veteran
Veteran


Joined: 31 May 2002
Posts: 1087
Location: Helsinki, Finland

PostPosted: Tue Dec 10, 2002 8:05 pm    Post subject: Reply with quote

Thanks for your replies, I'll take a look at 'em tomorrow :)
Back to top
View user's profile Send private message
MacMasta
Guru
Guru


Joined: 18 Apr 2002
Posts: 545
Location: Anchorage, AK

PostPosted: Tue Dec 10, 2002 10:38 pm    Post subject: Reply with quote

Allow me to add:

Avoid FTP like the plague - plaintext passwords are not your friends.

SCP is great.

~Mac~
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Tue Dec 10, 2002 11:19 pm    Post subject: Reply with quote

Is there an easy way to copy more than one file with SCP?
Back to top
View user's profile Send private message
phong
Bodhisattva
Bodhisattva


Joined: 16 Jul 2002
Posts: 778
Location: Michigan - 15 & Ryan

PostPosted: Wed Dec 11, 2002 2:30 am    Post subject: Reply with quote

Code:
# scp *.gif user@host:/dir/ectory
# scp file1 file2 file3 user@host:/dir/ectory
# scp -r directory user@host:

The last example copies a directory recursively to the user's home directory on host (including the directory - it doesn't just dump the contents). So, basically, it works almost exactly like cp.
_________________
"An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum