Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a little confused by this although

diff –rq  dir/ dir1/ 

does not show a difference This rsync is to backup the directory

rsync -avrREz --delete --links -e "ssh -l user" --delete dir/ && tar -c /dir/ | md5sum

but it does not seems to give me the same checksums when I do a tar on the destination directory

tar –c dir/ | md5sum

Am I missing something?

share|improve this question
up vote 2 down vote accepted

There's all sorts of metadata that goes into a tarball that can cause md5sum not to match. I've written this sort of verification script before, and I recall having to stuff around a bit to get rid of all the things that cause verification failures.

share|improve this answer
For instance, it includes the file paths. So tar -c dir and tar -c dir1 will always have different output. – Gordon Davisson Jul 28 '12 at 16:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.