LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-25-2007, 07:23 PM   #1
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 274

Rep: Reputation: 30
how to use wget


Hey all,
Im trying to get to an ftp site of mine, and ftp that data to a new system. I have a directory with more than 5 nested directories, and more directories in them. I tried to use wget, but it didnt transfer all the directories, i tried:

wget -r --user=USER --password=PASS ftp://ftp.address.com/

Is this correct??
Do i need to specify the local directory?

Thanks in advance!!!
 
Old 04-25-2007, 07:40 PM   #2
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
In theory (I love theory!), that should work... It will default to the current working directory to save the retrieved files.

What does that command do? Perhaps adding a * on to the end? ie:
wget -r --user=USER --password=PASS ftp://ftp.address.com/*

Have you tried rsync instead? Much faster
 
Old 04-25-2007, 07:43 PM   #3
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 274

Original Poster
Rep: Reputation: 30
have not tried rsync, never used it, how is that different? Can i use it to retried from my system, recursivly a directory?
 
Old 04-25-2007, 07:54 PM   #4
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 274

Original Poster
Rep: Reputation: 30
so rsync can copy from a machine and directory. The problem is I need to copy directory contents from a Windows Server. Can specify that directory, rsync will not work for this purposes.

Any other ideas?
 
Old 04-25-2007, 07:56 PM   #5
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
Does the host have the rsync daemon installed and running?

If not, you can do it over SSH but I'm not familiar with the actual command to do it that way. It's pretty simple AFAIK, just never had the need to do it

There are lots of tutorials out there:
Using Rsync and SSH: http://www.jdmz.net/ssh/
A Tutorial: http://everythinglinux.org/rsync/
 
Old 04-25-2007, 07:57 PM   #6
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
Ah ok, sorry - I was under the impression they were both Linux hosts.

Did you try with the * on the end?
 
Old 04-25-2007, 08:04 PM   #7
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 274

Original Poster
Rep: Reputation: 30
well ftp from the windows box, will also not do recursively.

So that stinks,
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wget isn't what I want. But what is it that I should use? ericbrian Linux - Newbie 2 04-19-2006 01:12 PM
about wget spx2 Linux - Newbie 7 12-19-2005 03:37 AM
wget noir911 Linux - General 1 06-12-2005 02:10 AM
wget guildivernos Linux - Networking 1 02-18-2005 04:13 PM
How do I get WGET to do this...? mrde50garfield Linux - Software 1 12-03-2003 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:05 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration