1821871 Members
3196 Online
109638 Solutions
New Discussion юеВ

cp versus scp

 
Nis T. Jorgensen
Occasional Advisor

cp versus scp

Hi,

I would like to use the scp command for the copying of 2TB data from one volume group to another on the same system (CX700 SAN on HP-UX 11.11), because it shows the speed, time and so on, but the question is if that is slower than just using the normal cp or mv commands?

Thanks in advance.

BR
NJ
5 REPLIES 5
Dhananjaya Amarakoon
Regular Advisor

Re: cp versus scp

Hi Friend,

Yes. If you are using scp, it must be take more time than normal copy (cp ) because there is encryption process happened in scp.

In your case I don't feel much security issue because of coping data internally. So I suggest you to copy using cp command to do it fast.

Dhanajaya
Rasheed Tamton
Honored Contributor

Re: cp versus scp

Hi,

scp is used to remotely copy the files securely over a network. In your case you care copying files from one dir to another one on the same system.

You can use timex to get the time, etc of a command.

Regards.
Reshma Malusare
Trusted Contributor

Re: cp versus scp

Hi Nis,
Scp - secure copy between hosts. See more info and examples - http://acs.ucsd.edu/info/scp.php

scp is definetly slower than cp as it is encrypted data copy...
But if you want to use this for internal data copy then simply go for cp..

Thanks & Regards
Reshma
Nis T. Jorgensen
Occasional Advisor

Re: cp versus scp

People recommend me to use cp as it is faster, so that I will do.

BR
Nis
Court Campbell
Honored Contributor

Re: cp versus scp

If you want to get a ballpark figure for the amount of time it takes to copy the sile using cp, try timex:

# timex cp /origpath/file /newpath/

It's not accurate, but as stated will give you a ballpark.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"