Thread View: comp.protocol.misc
4 messages
4 total messages
Started by totake
Sat, 26 Dec 1992 16:14
Recursive get for ftp
Author: totake
Date: Sat, 26 Dec 1992 16:14
Date: Sat, 26 Dec 1992 16:14
22 lines
1591 bytes
1591 bytes
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. I tried mget but it only retrieves files in the current directory and files in first level of subdirectories, but nothing else. Also, it doesn't reconstruct all the subdirectories at my location. So, how can I get an entire directory structure with its files and reconstruct it exactly as it is at the remote site? E-mail would be appreciated. Thanks in advance. Tom -- ------------------------------------------------------------------------------- / WARSTEINER : Life is too short to drink cheap beer. / //// totake@buster.eng.ua.edu //// 72570.3031@compuserve.com //// -------------------------------------------------------------------------------
Re: Recursive get for ftp
Author: Tony Porczyk
Date: Sat, 26 Dec 1992 23:38
Date: Sat, 26 Dec 1992 23:38
14 lines
965 bytes
965 bytes
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. I tried mget but it >only retrieves files in the current directory and files in first level of Did you try COPY -R <blah-blah> ? t.
Re: Recursive get for ftp
Author: Gary D. Duzan
Date: Sun, 27 Dec 1992 15:33
Date: Sun, 27 Dec 1992 15:33
33 lines
1991 bytes
1991 bytes
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_|
Re: Recursive get for ftp
Author: Seng-Poh Lee
Date: Mon, 28 Dec 1992 04:26
Date: Mon, 28 Dec 1992 04:26
15 lines
1277 bytes
1277 bytes
(totake@ho10.eng.ua.edu) wrote: > > 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, If you are picking stuff up via anon ftp, and the server supports the tar or tar.Z feature, then all you have to do is do a 'get' of the directory, and append the directory name with a .tar or .tar.Z and the server will tar up the directory and its sub-directories and send it as a tar or tar compressed file. -- Seng-Poh Lee <splee@alchemy.tn.cornell.edu>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads