1

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?

Quintin Par
  • 4,373
  • 11
  • 49
  • 72

1 Answers1

2

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.

womble
  • 96,255
  • 29
  • 175
  • 230