LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-02-2010, 01:07 AM   #1
battleship
Member
 
Registered: Jan 2010
Posts: 42

Rep: Reputation: 20
Downloading from ftp mirror?


How do you download a whole distribution at once from an ftp mirror? Ive never used ftp to DL more than 1 file at a time from konsole I tried mget, get as well as using wild cards like this get /slackware/*/*/*/*. Ive been looking for how to's but can't find any that deal with what I'm looking for. I know there is probably a simple solution but I can't find it. Any help?
 
Old 06-02-2010, 01:09 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Have a look at wget. It provides multiple ways to download and works with ftp also.
Code:
man wget
Kind regards,

Eric
 
Old 06-02-2010, 01:37 AM   #3
battleship
Member
 
Registered: Jan 2010
Posts: 42

Original Poster
Rep: Reputation: 20
Eric after giving the wget man page a look would something like this be what I would need?
ftp> wget -i /pub/linux/distributions/slackware/slackware_13.1 -o /home/ftp/slackware_13.1
 
Old 06-02-2010, 01:46 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Don't execute it from the ftp> console but at a normal console level. I imagine you're trying wget on Linux, right? (noticing the Windoze icon). Wget will download the files in the directory where you execute it, so first cd into the directory where you want the files.

Kind regards,

Eric
 
Old 06-02-2010, 02:08 AM   #5
battleship
Member
 
Registered: Jan 2010
Posts: 42

Original Poster
Rep: Reputation: 20
Wouldn't I log onto the server and be at the ftp prompt? or would I use this #wget -i /mirrorname/pub/slackware/slacckware_13.1 -o /whateverdir/. Im not trying to do this from windows I'm just on a windows computer right now that will be a slackware computer once I get this usb stick made.
 
Old 06-02-2010, 02:33 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by battleship View Post
Wouldn't I log onto the server and be at the ftp prompt?
Nope. As Eric said, wget is a command line tool on its own. It takes care of establishing a connection based on the protocol specified in the URL and download files and directories following the specified path. For example, the command:
Code:
wget --mirror ftp://ftp.something.it/pub/linux/distributions/slackware/slackware-13.1
should download (mirror) recursively the entire slackware directory from the remote server into the current directory.

Another suitable tool is lftp. You can either use it in a single command line or establish a connection and work interactively at a lftp command prompt (maybe you feel more comfortable with this second one). The advantage over the normal ftp client is that it can manage recursive download and mirrors. For example a single command line like this should do the trick:
Code:
lftp -e 'mirror /pub/linux/distributions/slackware/slackware-13.1; quit' ftp.something.it
whereas
Code:
lftp ftp.something.it
offers you a command prompt.

Anonymous connection is the default for both wget and lftp. Hope this helps.
 
Old 06-02-2010, 04:05 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Sorry for the late reply but I was in a meeting although I have nothing to add to the description colucix provided.

Kind regards,

Eric
 
Old 06-02-2010, 03:57 PM   #8
battleship
Member
 
Registered: Jan 2010
Posts: 42

Original Poster
Rep: Reputation: 20
Thanks guys I was making it harder than need be. Will try this when I have access to cable internet again in afew days.
 
Old 06-03-2010, 12:09 AM   #9
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

You're welcome. Hope it works out. Please let us know if it does or if you encounter problems.

Kind regards,

Eric
 
  


Reply



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
What's So Reliable About the wget Mirror Command vs Downloading Other Ways? des_a Linux - Software 0 03-12-2008 11:53 AM
Need password for ftp mirror awp10 Slackware 3 10-12-2007 06:36 PM
Mirror an FTP site. unreal128 Linux - Networking 7 10-20-2005 02:13 PM
What is the difference between downloading from Mirror and Bit Torrents? anindyanuri Linux - Networking 14 04-12-2005 08:45 PM
downloading from mirror tomamodi Linux - Software 2 04-26-2004 11:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration