Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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/ site.net: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

1 Answer 1

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

 
discard

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.