LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using wget to copy entire ftp directory (http://www.linuxquestions.org/questions/linux-newbie-8/using-wget-to-copy-entire-ftp-directory-334696/)

stuartmunro 06-17-2005 05:41 PM

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

Tinkster 06-17-2005 06:28 PM

man wget
/Recurs



Cheers,
Tink

stuartmunro 06-17-2005 06:44 PM

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

Tinkster 06-17-2005 06:49 PM

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

stuartmunro 06-17-2005 07:00 PM

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

Tinkster 06-17-2005 07:12 PM

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

stuartmunro 06-17-2005 07:32 PM

Ah Ha I understand, and got it to work!

Thank you for your help!

Genesee 06-17-2005 08: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.

:cool:


All times are GMT -5. The time now is 06:32 AM.