Hello guys,
i'm trying to make a mirror of a directory in which i've a webserver by ftp to my local PC.
I'm using Net::DownloadMirror as the example:
use Net::DownloadMirror; my $um = Net::DownloadMirror->new( ftpserver => "192.168.0.52", usr => "nathanvi", pass => "MYPASS", localdir => "C:\\Documents and Settings\\dip8a01015\\Ea +syPHP1-8\\www\\tiki", remotedir => "/var/www", debug => 1, # 1 for yes, 0 for no timeout => 500, # default 30 ); print("hostname : ", $um->get_ftpserver(), "\n"); $um->Update();
I received a lot of errors:
.... Net::FTP=GLOB(0x1ae5470)>>> CWD /var/www//var/www/dadabik Net::FTP=GLOB(0x1ae5470)>>> 550 /var/www//var/www/dadabik: No such fil +e or directory /var/www//var/www/dadabik is neither a file nor a directory ....
In the server's log i can see:
[21/Mar/2006:17:25:50 +0100] nathanvi.lingotto.local 192.168.50.195 55 +0 SIZE - - - "SIZE /var/www//var/www/dadabik [21/Mar/2006:17:25:50 +0100] nathanvi.lingotto.local 192.168.50.195 55 +0 CWD - - - "CWD /var/www//var/www/dadabik
Any suggestion please?
Relly thanks!!
PS: Sorry for my english...

2006-03-22 Retitled by planetscape, as per Monastery guidelines
Original title: 'DownloadMirror'


In reply to Errors using Net::DownloadMirror by nathanvit

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.