LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-17-2005, 04:41 PM   #1
stuartmunro
LQ Newbie
 
Registered: Jun 2003
Posts: 17

Rep: Reputation: 0
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
 
Old 06-17-2005, 05:28 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
man wget
/Recurs



Cheers,
Tink
 
Old 06-17-2005, 05:44 PM   #3
stuartmunro
LQ Newbie
 
Registered: Jun 2003
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 06-17-2005, 05:49 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
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
 
Old 06-17-2005, 06:00 PM   #5
stuartmunro
LQ Newbie
 
Registered: Jun 2003
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 06-17-2005, 06:12 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
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.
 
Old 06-17-2005, 06:32 PM   #7
stuartmunro
LQ Newbie
 
Registered: Jun 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Ah Ha I understand, and got it to work!

Thank you for your help!
 
Old 06-17-2005, 07:06 PM   #8
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
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.

 
  


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
How to copy an entire directory structure except certain files? thanhvn Programming 9 01-27-2012 11:41 AM
Copy an entire install to second harddisk seriesx4 Linux - General 7 10-13-2005 11:44 AM
FTP Software.. what will transfer an entire directory? trey85stang Linux - Software 3 06-19-2005 08:33 AM
how to copy entire website using linux ngan_yine Linux - Newbie 3 03-09-2005 04:04 PM
download entire directory via ftp peok Linux - General 5 12-27-2003 06:37 AM


All times are GMT -5. The time now is 02:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration