Archive for Downsizer For an ethical approach to consumption
|
tahir
|
Using RCPI 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
|
Re: Using RCP 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
|
It doesn't error (unless the paths are wrong) just sort of sits there till I break out.
|
jema
|
tahir wrote: | It doesn't error (unless the paths are wrong) just sort of sits there till I break out. |
http://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
|
Ta, I'll check
|
michael
|
Use SSH instead?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
|
thanks michael, does that mean that the data is automatically zipped before transmission?
|
michael
|
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
|
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?
|
|