rsync counts not identical
dpchrist at holgerdanske.com
Sun May 31 03:12:21 UTC 2020
> On 5/30/20, Polytropon <freebsd at edvax.de> wrote:
>> On Sat, 30 May 2020 21:11:49 -0400, David Mehler wrote:
>>> I'm using rsync on two FreeBSD servers to send files and
>>> subfolders from one to the other. The command I'm using is
rsync -avz /path/of/first/system/folder/ /path/of/second/system/folder/
>>> The first set of files/folders is on a ufs disk, the second on a
>>> zfs volume, differences in sizes are 13 to 20MB differences
>>> between the source and destination. Is this normal?
>> How have the sizes been measured?
>> Is it possible that some symlinks or hardlinks have been "resolved"
>> in some undesired way?
On 2020-05-30 19:43, David Mehler wrote:
> Thanks, I did a
> on both source and destination directories.
Your rsync(1) command is not deleting files on the destination that do
not exist on the source. See the various '--delete' options. You might
have leftover files or directories on the destination that do not exist
on the source.
Your du(1) command is displaying disk usage, not apparent size. See the
'-A' option. It is unlikely that UFS and ZFS will use the exact same
amount of disk space for the same content.
More information about the freebsd-questions