File size discrepancies

Chuck Swiger cswiger at mac.com
Fri Sep 28 11:35:29 PDT 2007


On Sep 28, 2007, at 11:27 AM, Modulok wrote:
> I have a file hierarchy of about 18GiB which was copied from a UFS 2
> file system one hard disk to a UFS 2 file system on a gmirror array.
> The size of the two hierarchies differ by 12 bytes according to du(1).
> No errors were reported by cp(1) during the copy operation.

cp may copy through symlinks-- it's not the ideal tool for  
replicating very large hierarchies if they contain links.  tar,  
rsync, dump/restore might be better choices, and you could use rsync - 
acv to check for and correct any differences.

-- 
-Chuck



More information about the freebsd-questions mailing list