Re: inconsistent checksums on copied directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




--- Dave Mitchell <davem@xxxxxxxxx> wrote:

> On Mon, Nov 20, 2006 at 03:40:20PM -0800, 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.
> 
> As well the other issues people have suggested, tar
> doesn't guarantee
> any order in which it will process the files in a
> particular directory. So
> your two tars may have the same contents but in a
> different order.
> 
> Try 
>     cd from_dir; tar cf - | tar tf - > /tmp/t1
>     cd to_dir;   tar cf - | tar tf - > /tmp/t2
>     diff /tmp/t[12]
> 
> -- 
thanks for the tip....
i tried this & diff /tmp/t[12]
returned null....

charles f zeitler




:                  Do  What Thou  Wilt                     :
         
:                       Shall  Be                          :

:                The  Whole  of The  Law                   :


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux