inconsistent checksums on copied directories

Tony Nelson tonynelson at georgeanelson.com
Tue Nov 21 00:24:21 UTC 2006


At 3:40 PM -0800 11/20/06, charles f. zeitler wrote:
>when i copy a directory,
>using cp -a or
>cd from_dir ; tar cf - original_dir | ( cd to_dir ; \
>tar xfBp - )
>
>and check them both with
>tar cf - dir | sha1sum,
>i get different checksums
>although both dirs have
>the same name and
>matching pairs of files
>have the same sha1sum.
>
>am i doing something wrong?

You aren't doing the tar for the sha1sums from the same relative position,
so the path in the tarfile is different.  If you really are doing the exact
same command after cd'ing into the parent dir, then show real commands and
their output.
-- 
____________________________________________________________________
TonyN.:'    The Great Writ     <mailto:tonynelson at georgeanelson.com>
      '      is no more.             <http://www.georgeanelson.com/>




More information about the users mailing list