[mdlug] Opinions on AS2, sftp and oftp

Joseph C. Bender jcbender at bendorius.com
Tue Feb 19 11:30:19 EST 2008


Drew wrote:
> * Aaron Kulkis <akulkis3 at hotpop.com> wrote on 14:01:45:
> 
>     The implimentation on my Zaurus does in fact have mget and mput. 
>     My complaint with sftp and ftp is the inability to transfer 
 >     a directory tree intact.
 >
	rsync does a better job of that anyway (and usually defaults to using 
SSH as the transport these days).

	Additionally, "scp -rp" will recursively copy directories and preserve 
modes and the various file timestamps.

	All that being said, if you really *want* to, you can use SSH and tar 
to do this as well.  It goes something like this (and this is from 
memory, so it *might* be a wee bit inaccurate):

 From target host:
ssh user at hostname "cd <source directory> && tar -cf - ." | tar -xvf -
(assumes your *local* cd is where you want the files to end up)

To target host:
tar -cf - . | ssh user at hostname "cd <target directory> && tar -xvf -"
(assumes that your *local* cd is where you want your files to come from)

Add or subtract tar options to fit your particular needs.


Personally, I prefer just using rsync over SSH for this sort of thing.


-- 
Joseph Bender
Bendorius Consulting
P: 248-434-5580
F: 248-434-5581
jcbender at bendorius com



More information about the mdlug mailing list