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.
Thanks


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.
Thanks