Performance difference between commands

Looking at the performance hit on my server, does it matter wich command I run?

client # rsh server tar �cf - . | tar �cv �f �

or

server # tar �cf � . | rsh client �cd target && tar �xv -f ��

I think it doesn't really matter because both command strings involve a tar being run on the server and client. Both commandstrings do a read on the server and a write on the client.

Are there compelling reasons one would opt for option 1 or option 2?

--Peter

It is hard to compare performance for something like this, because at time 1 the network or the disk I/O subsystem may be really loaded then; at time2 there can be no load.

Either option is fine, in my opinion.

Performance is usually secondary to data safety, integrity and privacy. Allowing rsh access, moreover to root, is quite questionable.

@jim

Agreed. But I'm trying to get an understanding if one of the two commands is preffered over the other. Especially which command will put more strain on the server. I'm inclined to think that it doesn't really matter (performance wise).

Indeed. That certainly makes no difference performance wise.