Quote:
Originally Posted by hesisaboury
so i always use du for checking disk usage of a folder or fdisk -l
|
I'm not sure why you would use
fdisk -l, that command would show static information about the disk layout and would be useless to check space usage.
Quote:
for info i have 2 mail server one with 20G mbox and the other more than 70G
|
I'm assuming that these two are to be backed-up using rsync and that this is not the source and destination size. A 50G difference after running rsync would be rather odd.
Can you give an idea what the difference(s) are? Is the source side bigger or the destination side? How much of a difference is there?
Quote:
both source and destination have the file system ,block , cylinder and
|
The file-system and the block-size used can influence the size. It isn't clear from your answer if both sides are the same. Cylinders aren't important at all to determine file size and/or disk usage.
Quote:
after rsync i check disk usage ...different size i saw ..
|
Without any details and assuming that the output if the du command isn't misread we won't be able to give you any specific advise.
In general I would suggest that you:
- add the -v / --verbose flag to the rsync command(s) you use. Maybe the detailed info shows something interesting,
- recheck the content on both source and destination. Don't just run du, check if all the files are accounted for,
- make sure that the destination side isn't contaminated with other files and/or directories which where not part of the rsync process.