home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.aix:12860 comp.unix.misc:4734 comp.unix.questions:14983 alt.bbs.internet:4835
- Newsgroups: comp.protocol.misc,comp.unix.aix,comp.unix.misc,comp.unix.questions,alt.bbs.internet
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!udel!louie!tweety.cis.udel.edu!duzan
- From: duzan@tweety.cis.udel.edu (Gary D. Duzan)
- Subject: Re: Recursive get for ftp
- Message-ID: <1992Dec27.153350.28908@udel.edu>
- Sender: usenet@udel.edu (USENET News Service)
- Nntp-Posting-Host: tweety.cis.udel.edu
- Organization: Your Organization Could Be Here!
- References: <1992Dec26.161412.150935@ua1ix.ua.edu>
- Date: Sun, 27 Dec 1992 15:33:50 GMT
- Lines: 33
-
- In article <1992Dec26.161412.150935@ua1ix.ua.edu> totake@ho10.eng.ua.edu () writes:
- =>Hi,
- =>
- =>I am looking for a way to transfer files using ftp from a remote site to my
- =>current account. In particular I need a command for ftp to recursively
- =>retrieve all files in a directory as well as all files in all subdirectories,
- =>not only the first level, but all levels below the current directory level,
- =>i.e. the entire directory structure with all the files.
-
- Assuming you can log into both machines, you can use rcp, or my
- favorite copy command, tar.
-
- From the source machine and directory:
-
- tar cf - . | rsh -l othername othermach "cd destdir ; tar xf -"
-
- Of course, you will need a .rhosts on the destination machine for rsh
- to work. If you are the sort that likes to see what is going on, use
- "tar xvf -". As always, check with the manpage before attempting new
- and wonderful things.
-
- Gary Duzan
- Time Lord
- Third Regeneration
- Humble Practitioner of the Computer Arts
-
-
-
- --
- duzan@cis.udel.edu
- _o_ ------------------ _o_
- [|o o|] Virtual Reality? No thanks, I've already got one. [|o o|]
- |_O_| Disclaimer: I have no idea what I am talking about. |_O_|
-