LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rsync problem (https://www.linuxquestions.org/questions/linux-newbie-8/rsync-problem-4175463866/)

ratotopi 05-28-2013 11:39 PM

rsync problem
 
two partition are equal in size and when the files from original partition was copied to others with command rsync -avgzol the destination files shows more used bytes than the original when seen through df command why ?

evo2 05-29-2013 01:33 AM

Hi,

possibly because -a doesn't preserve hardlinks.

Evo2.

shivaa 05-29-2013 02:01 AM

The df command shows disk free space i.e. file system size, not file sizes. Better try du instead of df to check exact file size.
Code:

~$ du -sk <filename>

emi_ramo 05-29-2013 04:42 AM

Some filesystems (ext4, for example) save files on sectors that are completely used still when the file inside does not fills it up. For example, if you have a 4Kb sector sized filesystem, all files smaller than 4Kb, use 4Kb each. If both filesystems have different sector sizes, the used space will be different, and much different if there are lots of files. du and df have the same problem about this issue.


All times are GMT -5. The time now is 07:33 AM.