John Vorstermans wrote:
>
> Hi.
>
> I have a problem which I cannot work out and wonder if anyone can point
> our what I am doing wrong.
>
> I wish to mirror a WEB site between to machines. To do this I am useing:
>
> wget -m -l50 -L ftp://www-data:[EMAIL PROTECTED]
>
> It logs in just fine but will only collect files in the / directory of
> the server. I wish it to copy files from subsdirectories (as in a
> recursive copy which the -m should do). Here is an example of the sort of
> error I am getting:
>
> =====================================================
> also.--14:10:25--
> ftp://www-data:[EMAIL PROTECTED]:21/%2Fcommunications
> /
> => `xena.website.org/_stats/index.html'
> Connecting to xena.website.org:21... connected!
> Logging in as www-data ... Logged in!
> ==> TYPE I ... done. ==> CWD /communications ...
> No such directory `/communications'.
Hmmm, this could be that you're not placed in the root directory. Older
wget expected to be placed in / and couldn't handle it when placed
somewhere else. This should be fixed in the current 1.7-dev version.
There has been some discussion here in the list about what is the right
thing to do and what wget should do with URL like:
ftp://ftp.somehost.com/path
ftp://ftp.somehost.com//path
ftp://ftp.somehost.com/%2Fpath
Try using wget version 1.6 or even better the current development
version (1.7-dev). Look at the web-site (http://sunsite.dk/wget/) for
instructions. There's also links to mail-archives of the list.
>
> --14:10:25-- ftp://www-data:[EMAIL PROTECTED]:21/%2Fcouncil/
> => `xena.website.org/council/.listing'
> Connecting to xena.website.org.:21... connected!
> Logging in as www-data ... Logged in!
> ==> TYPE I ... done. ==> CWD /council ...
> No such directory `/council'.
>
> =======================================================
>
> The directories are present on the server I am copying from and even of I
> create them on the destination server I get the same errors.
>
> I am using FTP because the files on the server contain "Sever Side
> Includes" which get translated when using HTTP which is not what we want.
>
> Any advice would be most welcome.
>
> Thanks
> John
>
> --
> John Vorstermans || [EMAIL PROTECTED]
> Serion E-Commerce Solutions || Ph (021) 432-987
> New Zealand
--
Med venlig hilsen / Kind regards
Hack Kampbjørn [EMAIL PROTECTED]
HackLine +45 2031 7799