LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-17-2004, 06:26 PM   #1
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Rep: Reputation: 15
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 )
 
Old 10-17-2004, 06:42 PM   #2
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
ncftp does a great job.
 
Old 10-17-2004, 07:23 PM   #3
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Original Poster
Rep: Reputation: 15
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.

 
Old 10-20-2004, 05:24 PM   #4
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
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 *

Last edited by Samsara; 10-22-2004 at 09:06 AM.
 
Old 10-20-2004, 06:06 PM   #5
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
wget should do it too
 
Old 10-20-2004, 06:37 PM   #6
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Original Poster
Rep: Reputation: 15
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.

Last edited by hq4ever; 10-22-2004 at 11:41 AM.
 
Old 10-22-2004, 09:11 AM   #7
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
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
 
Old 10-22-2004, 11:41 AM   #8
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Original Poster
Rep: Reputation: 15
fixed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
symlink from ares download folder desheikh Linux - Newbie 2 09-19-2005 02:47 PM
How to write a shell script to download a file via FTP? guarriman Linux - General 4 12-21-2004 09:31 AM
is there any linux command to download files from any ftp site remotely midnitc Linux - General 3 10-31-2003 08:05 AM
How to get an entire folder trough ftp with one command. amnesiac Linux - Software 3 08-31-2003 03:24 PM
SaveTo /Download /Folder Locations xwastedmindx Linux - Newbie 2 06-13-2003 06:56 PM


All times are GMT -5. The time now is 05:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration