Article 57TGY Same file and folders on same disk but different sizes

Same file and folders on same disk but different sizes

by
msbjx5
from LinuxQuestions.org on (#57TGY)
Hi Guys how are you ?

I am running a debian 10 n AWS with a ext4 volume attached.
There is a data folder in /mnt/ebs01/dados, I did a rsync -havgupP /mnt/ebs01/dados /mnt/ebs01/backup.
When i run du -h in /mnt/ebs01/dados the result is 61G
When i run du -h in /mnt/ebs01/backup the result is 40G

I checked a few folders in /mnt/ebs01/backup, they have the same files as I have in /mnt/ebs01/dados.
When i run ls -lah in /mnt/ebs01/dados/folder1 and in /mnt/ebs01/backup/folder1 the files sizes reported are the same.

Why du -h shows different size ? The filesystem is the same, I mean the disk is the same, folder and files are the same.

Sorry if i don made myself understood, english is not my first language.

Thankslatest?d=yIl2AUoC8zA latest?i=Pm7FauZDA38:DHQBXsHxlm8:F7zBnMy latest?i=Pm7FauZDA38:DHQBXsHxlm8:V_sGLiP latest?d=qj6IDK7rITs latest?i=Pm7FauZDA38:DHQBXsHxlm8:gIN9vFwPm7FauZDA38
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments