james28909,

I think you have your answer about using MD5 stamps, but you are adding a lot of CPU work to find out that a file has changed ( or not ) and you are not guaranteed that the MD5 will be different. A few years ago, I took 400K files and did MD5 of each file and then sorted the results. I found that many different files had the exact same MD5. MD5 is great for determining that 2 files are the same, but not necessarily that they are different. YMMV.

To get the results I needed, I used the 'find' command with the '-newer' option to build my list of files to backup. Immediately after the 'find', I would 'touch' a file for getting my base target for the next 'find' cycle. Unfortunately, depending on long the 'find' took to execute, sometimes I would miss a file, and so I changed the file timestamp to exactly the same time that the 'find' started each cycle.

Just giving you some thoughts before you finish your design. Also look at 'rsync' for some ideas. Good Luck!

Regards...Ed

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


In reply to Re: XMD5 and Net::FTP by flexvault
in thread XMD5 and Net::FTP by james28909

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.