Date: Tue, 11 Sep 2012 20:23:36 -0600 From: markham breitbach <markham_breitbach@ssimicro.com> To: Gary Kline <kline@thought.org> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: cksum entire dir?? Message-ID: <504FF228.4090908@ssimicro.com> In-Reply-To: <20120911213804.GA9817@ethic.thought.org> References: <20120911213804.GA9817@ethic.thought.org>
next in thread | previous in thread | raw e-mail | index | archive | help
As long as you are not moving files across mount points, you could always do something like this: cd $SOURCE_DIR && find . -print | cpio -dplm $DEST_DIR rm -rf $SOURCE_DIR That will create hard links from one directory to the other so you don't have to worry about any file corruption since the data is never actually moved around on the disk. It should also be a whole lot faster than actually moving or copying the data and you don't have to worry about running out of disk space half way through a copy. -M On 12-09-11 3:38 PM, Gary Kline wrote: > I'm trying to checksum directories as I move them around. > ive read the man page for sum and cksum ... or maybe skimmed > them. no joy. anybody know of a utility to do this? I've > got files that are decades old... > > tx, guys. > > gary > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?504FF228.4090908>