Solved

Comparing Directory Structures/Files (perferably with a checksum)

Posted on 2003-11-20
2
368 Views
Last Modified: 2010-04-21
I have to different directories that I would like to compar bit by bit, byte by byte......
I would like to compare them using some kind of check sum preferably. and to top this
all off its too much to do manualy and it needs to be done regularly with minimal effort preferd....

Thanks...
0
Comment
Question by:EHart7
2 Comments
 
LVL 24

Accepted Solution

by:
shivsa earned 180 total points
ID: 9795364
GNU has Diffutils.
This is the manual link. I think it may solve your purpose.

http://tuxisland.org/download/documentations/diffutils/diff.pdf.
0
 
LVL 20

Assisted Solution

by:Gns
Gns earned 70 total points
ID: 9798024
As shivsa says, diff is probably the easy route here... something like
diff -r --brief dir1 dir2
would perhaps be enough? This will just report whether there are any differences between the directories (files only in one place or the other, if the files differ... If they match, this is "silent").
I use this in a script to check some wget mirror data for ... "new arivals" (it's for antivirus updates).

One could of course do something interresting with find and md5sum, but it would perhaps be a bit .... overkill.

-- Glenn
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now