Re: stupid cp(1) behaviour

From: Greg 'groggy' Lehey <grog_at_FreeBSD.org>
Date: Fri, 2 Dec 2011 16:24:51 +1100
On Thursday,  1 December 2011 at 11:35:50 -0800, Matt Mullins wrote:
> On Thu, Dec 1, 2011 at 3:28 AM, Alexander Best <arundel_at_freebsd.org> wrote:
>> implement a new -N switch or so which isn't based on a file's
>> existance, but a file's checksum.
>
> You can always use net/rsync, which does by default compare
> checksums.

FWIW, by default rsync only compares checksums by default if the file
size or modification timestamps are different.  If you want to always
go by checksum, you need the -c (--checksum) option.

Greg
--
Sent from my desktop computer
Finger grog_at_FreeBSD.org for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed.  If your Microsoft MUA reports
problems, please read http://tinyurl.com/broken-mua

Received on Fri Dec 02 2011 - 04:32:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:21 UTC