[lug] FTP Question

Sean Reifschneider jafo at tummy.com
Mon Nov 20 15:49:10 MST 2000


On Sun, Nov 19, 2000 at 09:23:10PM -0700, Calvin Dodge wrote:
>You can do that with scp (secure copy), too, if you're worried about sniffers
>on the network.  "scp -r sourcecomputer:dir ." will do the job for you.

Another way to skin that cat is:

	ssh remotebox 'cd /remote/dir; tar c .' | tar xpv

that will use tar to copy the contents, but doesn't require the tar archive
to exist anywhere on the system.  It's also much faster if you're copying
lots of small files (scp has fairly high overhead on each file).  Also
allows you to use non-priveleged ports (scp doesn't have a -P option).

Sean
-- 
 "We just wanted to give the band a little more thrust than most other bands."
         - Donald Fagen's reply to why they chose the name 'Steely Dan'
Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python




More information about the LUG mailing list