home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / aix / 12860 < prev    next >
Encoding:
Internet Message Format  |  1992-12-27  |  2.0 KB

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