Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2007 14:24:51 -0400
From:      Rob <bitabyss@gmail.com>
To:        stevefranks@ieee.org, freebsd-questions@freebsd.org
Subject:   Re: cp --verify?
Message-ID:  <4724D3F3.3040902@gmail.com>
In-Reply-To: <539c60b90710281017r4db40821s358b67049ee7b063@mail.gmail.com>
References:  <539c60b90710281017r4db40821s358b67049ee7b063@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Steve Franks wrote:
> I don't see a --verify switch on cp, so I presume it does not.  Is
> there an automated way to ensure a copy has gone well byte-for-byte
> without writing a script to filter diff?  I want to be relatively sure

If you use the diff command and specify directories, it will compare the 
contents of each, as well as comparing all the files byte for byte. 
Check "man diff" -- there should also be an option to check down through 
any subdirectories as well.

   -Rob




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