Directory md5 integrity check, and dummy remote backup principles

It might be frequent that for different needs, you want to verify the integrity of your data within a directory..

In the same way when you create or collect important data, that you don’t want to loose it (frequent attachment pathology of human being :) ).

 

I found this recursive md5 utility, file by file, in *command line* very usefull. Here also my example is base on exf windows program

because I used it with automation tool xstarter.

So.. exf do the job:

exf.exe -otf  c:\temp\md5_result.txt -r -d “c:\mydatadir” *.*

Then you get a digest file with all by file md5 fingerprints.

Hum..suddenly you want to compare if any changes  have been done to you previous copy of this archive of

if any file did change so what you need is to compare to this digest file list to the previously saved one.

c:\temp\md5_result.txt  can be simply compare with any tools but there is a small issue: 3 lines are updated with a time stamp that you can remove by using a command line tool like .. sed :

sed.exe –in-place 3d “c:\temp\md5_result.txt”

 

Now we can consider a very simple remote file synchronisation system based on fingerprints comparison.

Wait !! I know , I know, very good tools does exist to do remote data backup synchronisation, like the great rsync.

I want just to expose this simple mechanism, because it will work on a basic setup of server having a FTP tool where

the backup process acts completely passively on the remote server.

The advantage is that it is really widespread tools and setup.

Next time I will exposes test results of rsync usage :)

sed for windows

exf command line

My quick repack of required tools

2 thoughts on “Directory md5 integrity check, and dummy remote backup principles

  1. Woah! I’m really enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s challenging to get that “perfect balance” between user friendliness and visual appearance. I must say you have done a great job with this. Additionally, the blog loads very quick for me on Safari. Superb Blog!

  2. Howdy! Someone in my Myspace group shared this website with us so I came to take a look. I’m definitely loving the information. I’m bookmarking and will be tweeting this to my followers! Exceptional blog and excellent design and style.

Leave a Reply to Leonida Martines Cancel reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>