Jump to content

Multiple File Backups and MD5 Hashing


Recommended Posts

I'm working on a script to copy numerous files (85+) to a backup server. I wanted some sort of checks and balance. So far what I've come up with was doing an MD5 hash comparison between the source and destination files. I'm using the MD5 hash example from http://www.autoitscript.com/forum/index.php?showtopic=21010.

I've got things working on a smaller scale between 2-3 files, however I'm curious how to compare these numerous files and then re-copy any which fail the check? Maybe comparing the hash isn't the best/easiest way. Any other suggestions?

Thanks,

MePH

Link to comment
Share on other sites

it would be slow, but do it all one at a time.

move the file, and check the hash, if its wrong, try again.

perhaps set a point of critical failure (3 attempts and write an error log)

If you are using MS Server edition, use NTbackup to make a .bkf file to the remote destination.. i usually find it much more reliable than just making a copy of the file.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...