LinuxQuestions.org
Visit Jeremy's Blog.
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, 02: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, 02: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: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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, 02: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, 02: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: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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, 03: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, 03:33 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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, 05: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: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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, 04: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, 01: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: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

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

Kind regards,

Eric
 
  


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


All times are GMT -5. The time now is 08:43 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration