Home Page
   Articles
       links
About Us    
Traders        
Recipes            
Latest Articles
Using RCP

 
Post new topic   Reply to topic    Downsizer Forum Index -> IT Matters
Author 
 Message
tahir



Joined: 28 Oct 2004
Posts: 45723
Location: Essex
PostPosted: Fri Jul 15, 05 6:02 pm    Post subject: Using RCP Reply with quote
    

I need to copy the data from my old Linux server to my new one, I was going to use rcp but it doesn't seem to be working, this is the syntax I'm using, the idea is to copy all the subs under data to the same locations on the new server:

rcp oldserver:/appl/data/* /appl/data -r

And is there any way to display what's happening on screen?

Any tips welcome

jema
Downsizer Moderator


Joined: 28 Oct 2004
Posts: 28362
Location: escaped from Swindon
PostPosted: Fri Jul 15, 05 6:36 pm    Post subject: Re: Using RCP Reply with quote
    

tahir wrote:
I need to copy the data from my old Linux server to my new one, I was going to use rcp but it doesn't seem to be working, this is the syntax I'm using, the idea is to copy all the subs under data to the same locations on the new server:

rcp oldserver:/appl/data/* /appl/data -r

And is there any way to display what's happening on screen?

Any tips welcome


Not used rcp myself, but some mention of any messages you see would probably help someone who has.
The obvious point is permissions, as clearly Linux is not set up to let any old bod to rcp.

tahir



Joined: 28 Oct 2004
Posts: 45723
Location: Essex
PostPosted: Fri Jul 15, 05 6:38 pm    Post subject: Reply with quote
    

It doesn't error (unless the paths are wrong) just sort of sits there till I break out.

jema
Downsizer Moderator


Joined: 28 Oct 2004
Posts: 28362
Location: escaped from Swindon
PostPosted: Fri Jul 15, 05 6:55 pm    Post subject: Reply with quote
    

tahir wrote:
It doesn't error (unless the paths are wrong) just sort of sits there till I break out.


https://www.cisco.com/warp/public/477/RME/rcp.shtml

is rshd configured on the target machine? or are you just stting there awaiting a connecton that does not happen?

tahir



Joined: 28 Oct 2004
Posts: 45723
Location: Essex
PostPosted: Sun Jul 17, 05 7:31 am    Post subject: Reply with quote
    

Ta, I'll check

michael



Joined: 12 Jul 2005
Posts: 11
Location: Cardiff
PostPosted: Sun Jul 24, 05 12:54 pm    Post subject: Use SSH instead? Reply with quote
    

RCP and the other R-tools are insecure. Whilst this is probably fine on a home network, it is a good idea to switch to SCP, because this is secure (encrypted connection), is safe to use across the Internet, and will work on most modern Unix, Linux, BSD computers, and even on MAC OS X. (I think you can get a version of OpenSSH for Windows computers, too, but I have never tried copying files that way.)

Quote:
rcp oldserver:/appl/data/* /appl/data -r


translates very easily to:

Quote:
scp -r oldserver:/appl/data/* /appl/data


You can also use the -C (capital C) flag to include dynamic gzip compression, useful when transferring to/from the Internet.

tahir



Joined: 28 Oct 2004
Posts: 45723
Location: Essex
PostPosted: Sun Jul 24, 05 12:56 pm    Post subject: Reply with quote
    

thanks michael, does that mean that the data is automatically zipped before transmission?

michael



Joined: 12 Jul 2005
Posts: 11
Location: Cardiff
PostPosted: Sun Jul 24, 05 1:18 pm    Post subject: Reply with quote
    

The -C means "suck up all the files, compress them, then transfer to the other computer and uncompress them", so yes, they are zipped up, but they are automatically unzipped so it is as if they had not been compressed....

One thing to note - compressed files won't shrink any more if you try to re-compress them, so this will probably not save any time if you are transferring JPEGs, ZIPs, MP3s, etc., but should save a noticeable amount of time transferring HTML, DOC, etc across the internet.

tahir



Joined: 28 Oct 2004
Posts: 45723
Location: Essex
PostPosted: Sun Jul 24, 05 1:21 pm    Post subject: Reply with quote
    

It's (hugely compressible) database files and indexes, great tip, thanks very much.

One other question, is there something similar for compress>transfer to samba mount (NT machine)>uncompress?

Post new topic   Reply to topic    Downsizer Forum Index -> IT Matters All times are GMT
Page 1 of 1
View Latest Posts View Latest Posts

 

Archive
Powered by php-BB © 2001, 2005 php-BB Group
Style by marsjupiter.com, released under GNU (GNU/GPL) license.
Copyright © 2004 marsjupiter.com