LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   using ftp to download whole folder -- script or command ? (https://www.linuxquestions.org/questions/linux-networking-3/using-ftp-to-download-whole-folder-script-or-command-243925/)

hq4ever 10-17-2004 06:26 PM

using ftp to download whole folder -- script or command ?
 
Hello everyone,

I'm trying to download a whole directory tree from a remote ftp server (meaning files & other dirs too), the local shell is bash.

I use the simple ftp from binutils, i have no shell access to the server, only ftp & http.

I could of curse start writing recursive complicated script that would map the whole directory tree on the server & then pipe the results into wget or something but i think that there must be an easier solution, right ?

help please, (a slick shinny script would be welcome too :) )

Samsara 10-17-2004 06:42 PM

ncftp does a great job.

hq4ever 10-17-2004 07:23 PM

hua, how is that?

what is the command i should use in ncftp??
I think i should have mentioned that i can't use bgget because my "local" shell i actually also a remote shell on a public ssh server.

:D

Samsara 10-20-2004 05:24 PM

Quote:

Originally posted by hq4ever
what is the command i should use in ncftp??
get -R directory/

ncftp has command completion and supports wildcards:

e.g.
get -R *

mrcheeks 10-20-2004 06:06 PM

wget should do it too

hq4ever 10-20-2004 06:37 PM

Quote:

Originally posted by Samsara
get -R directory/

ncftp has command completion and supports wildcards:

e.g.
get -R *

Thank you very much, i had no idea i could use -R in the get trigger :)

b.t.w :: I'm so stupid, i just wanted to write that it's not in the man page, then i took another look & guess what -- It's there :(
guess it's easier to find something when you know what your looking for ...

so thx again,
good day.

Samsara 10-22-2004 09:11 AM

I did mean "get -R *", not "ncftp -R *"

have corrected my post above, but the mistake is preserved in your quote. That's the problem with quoting :(

Samsara

hq4ever 10-22-2004 11:41 AM

fixed :)


All times are GMT -5. The time now is 02:56 AM.