Peter da Silva wrote:
> Back during the whole scp1 versus scp2 fiasco, I got used to using
> 
> tar cfz - directory | ssh u...@host sh -c "cd $wherever; tar xfz -"

Tsk tsk.

cd $wherever && tar xfpz -

Just in case something bad happened to $wherever since last time.

(I've had a script very much like that in ~/bin, adding an appropriate
cd also at the source end, since, well, long time ago)

> Both scp and rsync suffer mightily from hatefully poor layering.
> 
> 
> 

Reply via email to