temporal,

I too have had problems with 'File::Copy'. But for my situation, it was not with the size of the file, but rather with the stress on the system. I used 'File::Copy' on a mail server, and never seemed to have a problem when the server was getting less than 8 emails per second, but when the server went over 10 emails per second, I would get mis-matched "qf..." and "df..." files. So we were losing files!

My solution was to use Perl to move or copy files of less than 2GB, and use the system 'move/copy' for files larger than 2GB. In my environment, the cost of using 'system' or 'qx' for files larger than 2GB was actually faster.

For your situation have you looked at 'rsync'. The advantage is that if the sizes don't match you can restart 'rsync' until it is correct. And without ever going into the actual code, 'rsync' does seem much faster than 'move/copy/ftp' over networks. I have used 'rsync' on Windows, but I don't know if you have access to it in your environment.

Good Luck

"Well done is better than well said." - Benjamin Franklin


In reply to Re: File::Copy on Large-ish Files over Network by flexvault
in thread File::Copy on Large-ish Files over Network by temporal

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.