-   Linux - Newbie (
-   -   Using wget to copy entire ftp directory (

stuartmunro 06-17-2005 04:41 PM

Using wget to copy entire ftp directory

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 before and thats fine,

but what do I do when I want to copy a directory (and everything underneath) on an ftp site?



Tinkster 06-17-2005 05:28 PM

man wget


stuartmunro 06-17-2005 05:44 PM

sorry, I dont quite understand

I tried:

man wget


man wget /Recurs

But I just this

Wget - The non-interactive network downloader.

wget [option]... [URL]...

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


Tinkster 06-17-2005 05:49 PM

Sure ..
on a prompt, type exactly (and only) that
man wget

Followed by a

In case you didn't notice it, man wget gives you
detailed information on how to use wget.


stuartmunro 06-17-2005 06:00 PM

Sorry, you completely lost me.

Is i possible you could tell me in an example how to download entire directories eg

wget /home/admin

Sorry for being a pain in the arse.


Tinkster 06-17-2005 06:12 PM


from the wget manual

Recursive Retrieval Options

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.

And for the spoon-feeding:
wget -r


stuartmunro 06-17-2005 06:32 PM

Ah Ha I understand, and got it to work!

Thank you for your help!

Genesee 06-17-2005 07:06 PM

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 11:15 PM.