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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-17-2005, 04:41 PM
|
#1
|
LQ Newbie
Registered: Jun 2003
Posts: 17
Rep:
|
Using wget to copy entire ftp directory
Hi,
I have a shared hosting account and a dedicated server in different locations.
Im trying to copy the shared to the dedicated server.
I've used the wget ftp.blah.com/download.rpm before and thats fine,
but what do I do when I want to copy a directory (and everything underneath) on an ftp site?
Thanks
Stuart
|
|
|
06-17-2005, 05:28 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
man wget
/Recurs
Cheers,
Tink
|
|
|
06-17-2005, 05:44 PM
|
#3
|
LQ Newbie
Registered: Jun 2003
Posts: 17
Original Poster
Rep:
|
sorry, I dont quite understand
I tried:
man wget http://mywebsite.com/directory
and
man wget http://mywebsite.com/directory /Recurs
But I just this
NAME
Wget - The non-interactive network downloader.
SYNOPSIS
wget [option]... [URL]...
DESCRIPTION
GNU Wget is a free utility for non-interactive download of files from
the Web. It supports HTTP, HTTPS, and FTP protocols, as well as
retrieval through HTTP proxies.
Wget is non-interactive, meaning that it can work in the background,
while the user is not logged on. This allows you to start a retrieval
and disconnect from the system, letting Wget finish the work. By con-
trast, most of the Web brow......................
Any ideas
Thanks
|
|
|
06-17-2005, 05:49 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Sure ..
on a prompt, type exactly (and only) that
man wget
Followed by a
/Recurs
In case you didn't notice it, man wget gives you
detailed information on how to use wget.
Cheers,
Tink
|
|
|
06-17-2005, 06:00 PM
|
#5
|
LQ Newbie
Registered: Jun 2003
Posts: 17
Original Poster
Rep:
|
Sorry, you completely lost me.
Is i possible you could tell me in an example how to download entire directories eg
wget http://mywebsite.com/directory /home/admin
Sorry for being a pain in the arse.
Thanks
|
|
|
06-17-2005, 06:12 PM
|
#6
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
from the wget manual
Recursive Retrieval Options
-r
--recursive
Turn on recursive retrieving.
|
This is what you would have seen on screen if you
had followed my instructions. Sorry, I was trying to
teach you TWO things at a time:
a) how to retrieve data recursively
b) how to find out about that kind of thing by yourself
Was a bit too much, I guess.
[edit]
And for the spoon-feeding:
wget -r ftp://ftp.mysite.com/
[/edit]
Cheers,
Tink
Last edited by Tinkster; 06-17-2005 at 06:27 PM.
|
|
|
06-17-2005, 06:32 PM
|
#7
|
LQ Newbie
Registered: Jun 2003
Posts: 17
Original Poster
Rep:
|
Ah Ha I understand, and got it to work!
Thank you for your help!
|
|
|
06-17-2005, 07:06 PM
|
#8
|
Member
Registered: Dec 2002
Distribution: Slackware
Posts: 927
Rep:
|
typing "man" followed by some command, in a terminal, will typically allow you to read the manual for that command - the manual page will describe in detail how to use that command, different options, etc.

|
|
|
All times are GMT -5. The time now is 10:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|