Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Sep 2007 11:35:27 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Modulok <modulok@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: File size discrepancies
Message-ID:  <C11F1A8C-3B85-4367-99B5-25451661F507@mac.com>
In-Reply-To: <64c038660709281127j1df4835bxcbfe4495600fd6d7@mail.gmail.com>
References:  <64c038660709281127j1df4835bxcbfe4495600fd6d7@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C11F1A8C-3B85-4367-99B5-25451661F507>