FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old June 14th, 2002, 05:16 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,296 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 5 m 42 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
Recursive mget with command line ftp

hi y'all

just wondering.. Let's say I ftp to a machine and cd to dir1.
Now let's say dir1 contains directories dir2, dir3, dir4 , which all contain files of the same type (eg binaries... yeah, ok, so I'm downloading mp3s off a friend's machine). Anyway, my questions is this: is there a way to use mget, so that it will bring down the whole tree? Otherwise, I have to create all the directories locally, then cd into each one bfore ftp'ing up, cd'ing again, mget'ing and then repeating the whole process for each directory...

I just typed too much, but to summarise:
Can ftp.mget * be made to copy across subdirectories and their contents?

or is there an alternative command line tool?

thanks
Chris

Reply With Quote
  #2  
Old June 17th, 2002, 03:11 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
it depends on your client. mine supports this:

ftp> recursive mget *

type "help" to see if "recursive" is supported by your client. i think it should work with any server then
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old June 17th, 2002, 07:22 PM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,296 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 5 m 42 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
no joy

recursive not supported.
I am told that wget can be used, but I can't get it working in this case, I think because I have to log into the ftp machine as me!

later
Christo

Reply With Quote
  #4  
Old June 18th, 2002, 05:48 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Hi CHR15T0!

from "wget --help" i canīt tell if it supports ftp logins. but i donīt think they left out this important feature.

try to set "--http-user=... --http-passwd=..." and see if it takes the same login for ftp too.

if this does not help, rsync should be able to do the same job. but i donīt have it installed, so you need to see yourself.

greetings,

Manuel

Reply With Quote
  #5  
Old September 9th, 2003, 07:38 PM
Kleidersack Kleidersack is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 1 Kleidersack User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,

I know, that it's quite late for anwsering and I think, you found the anwser long time ago, but when you search at google for "recursive + ftp + linux" this side is one of the first you get to.

So, in order to use ftp + login with wget you must just type:

Code:
wget -r ftp://user: pass@domain...

the space between user: and pass is incorrect, but the forum-software makes ...ftp://user***@domain...else.

hope, that will help someone

Last edited by Kleidersack : September 9th, 2003 at 07:42 PM.

Reply With Quote
  #6  
Old September 9th, 2003, 08:38 PM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,296 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 5 m 42 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
lol - I can't believe I even asked that question - and yeah, you're kinda late, dude


christo

Reply With Quote
  #7  
Old March 31st, 2008, 10:45 PM
commbot commbot is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 9 commbot User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 55 m
Reputation Power: 0
Late? Who cares. Right Answer is what matters and is the difference between having to stare at the screen for hours with FTP and using this one precious command. Result is I'm heading down the pub while my whole collection of websites gets moved from one crappy host to their new home by wget magic. Good Work Fella!


Reply With Quote
  #8  
Old July 9th, 2008, 04:36 PM
klassicd klassicd is offline
Player
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: San Diego
Posts: 28 klassicd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 15 sec
Reputation Power: 0
Send a message via AIM to klassicd
thanks

This is real simple. I found you on google via "mget recursive".

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Recursive mget with command line ftp


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway