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 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?
sorry, I dont quite understand
man wget http://mywebsite.com/directory
man wget http://mywebsite.com/directory /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......................
on a prompt, type exactly (and only) that
Followed by a
In case you didn't notice it, man wget gives you
detailed information on how to use wget.
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.
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 ftp://ftp.mysite.com/
Ah Ha I understand, and got it to work!
Thank you for your help!
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 09:34 PM.|