Problem
We have two mount points on two disks, both are the exact same type. Both disks are formatted ext4.
An rsync
command with options to synchronize from source to destination is performed.
After the rsync is performed, the following data is shown:
Disk 1 - Source
315.8 GiB (339,148,905,125) - 476,038 files, 21,975 sub-folders.
Disk 2 - Destination
315.8 GiB (339,098,108,411) - 476,038 files, 21,975 sub-folders.
Difference
50,796,714
bytes (~50 Mb)
Command Used
rsync -r -t -p -o -g -v --progress --delete --ignore-existing -s /media/user/disk1 /media/user/disk2
Question
Why are the total byte sizes different?
Update
The suggested answer was attempted. The byte size between the source and the destination showed no improvement in size equalization.
Suggested answer command included the -a
and -l
switches, adding archiving and symbolic link transfer:
rsync -a -r -t -p -o -g -v -l --progress --delete --ignore-existing -s /media/user/disk1 /media/user/disk2
(Results)
Disk 1 - Source
315.8 GiB (339,148,905,125) - 476,038 files, 21,975 sub-folders.
Disk 2 - Destination
315.8 GiB (339,098,108,411) - 476,038 files, 21,975 sub-folders.
Difference
50,796,714
bytes (~50 Mb)
Status
Problem not solved.
Further Research
A similar problem found on SuperUser:
From ServerFault:
Rsync size is difference from source to destination
Update 2
Requests were made for du
and df
outputs, and the results were:
root@system:/# du -s /media/user/disk1
332172440 /media/user/disk1
root@system:/# du -s /media/user/disk2/
332119568 /media/user/disk2/
root@system:/# df /media/user/disk1
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc 528316088 332243868 169212316 67% /media/user/disk1
root@system:/# df /media/user/disk2/
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb 528316088 332190996 169265164 67% /media/user/disk2
Thus there is still a difference of 52,872 between disk1 and disk2.