Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2007 10:53:19 -0400
From:      Jason Harris <jharris@widomaker.com>
To:        Juri Mianovich <juri_mian@yahoo.com>
Cc:        freebsd-fs@freebsd.org, Jason Harris <jharris@widomaker.com>
Subject:   Re: comparing two filesystems with different newfs values ?
Message-ID:  <20071016145319.GA4778@wilma.widomaker.com>
In-Reply-To: <759671.62342.qm@web45603.mail.sp1.yahoo.com>
References:  <759671.62342.qm@web45603.mail.sp1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--MGYHOYXEY6WxJCY8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Oct 14, 2007 at 10:01:51PM -0700, Juri Mianovich wrote:

> The bottom line is, I want to be SURE that all of the
> data is transferred before I scrap system A ... rsync
> is telling me all the data is there, because when I
> re-run it, nothing new gets transferred ... but I
> really want to "prove" it by looking at the total file
> size ... and I can't seem to do that currently.

If you want files and their sizes only, try:

  %find . -type f -ls | awk '{print $7 "\t" $11}' | tee `hostname`

then "sort +1" them and diff or "sort -m +1 ... | uniq -u" to find
the unique entries.

If you have the time to hash all that data, try:

  %find . -type f | xargs /sbin/md5 (or sha1/rmd160/sha256) | tee ...

to make sure the copied files hash identically.

"rsync -c" will use md4 hash equality instead of size and modtime
equality to pronounce files "indentical."  But, if you're going to
hash the files, you might as well use sha1 or rmd160 at minimum.

--=20
Jason Harris           |  NIC:  JH329, PGP:  This _is_ PGP-signed, isn't it?
jharris@widomaker.com _|_ web:  http://keyserver.kjsl.com/~jharris/
          Got photons?   (TM), (C) 2004

--MGYHOYXEY6WxJCY8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iJwEARECAF0FAkcU0F9WGGh0dHA6Ly9rZXlzZXJ2ZXIua2pzbC5jb206MTEzNzEv
cGtzL2xvb2t1cD9vcD1nZXQmc2VhcmNoPTB4RDM5REEwRTMmd2VoYXZleW91bm93
PXRydWUACgkQSypIl9OdoONMOACYjLsyezcUu4bNW4r/jQIB4k0bnACgoyqMgzMd
o1cOTvMHVHVwNDU8Mhw=
=kK6q
-----END PGP SIGNATURE-----

--MGYHOYXEY6WxJCY8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071016145319.GA4778>