rsync mystery

Karl Larsen k5di at zianet.com
Tue May 20 00:42:05 UTC 2008


Karl Larsen wrote:
> Mike Bird wrote:
>   
>> On Mon May 19 2008 16:52:06 Karl Larsen wrote:
>>   
>>     
>>> Mike Bird wrote:
>>>     
>>>       
>>>>>     Does anyone know why a backup is larger than the original??
>>>>>         
>>>>>           
>>>> Did the backup use both -H and -S?
>>>>
>>>> IIRC your root partition was about 2.8GB.  Did it backup
>>>> other partitions (e.g. /home or /var/run) in addition to
>>>> your root partition?
>>>>
>>>> --Mike Bird
>>>>       
>>>>         
>>>     I used neither -H or -S it was a simple backup of the entire system.
>>> I used this:
>>> sudo rsync -av /boot /bin /dev /etc /initrd /lib /proc /root /sbin /sys
>>> /tmp /usr : /mnt
>>>
>>> and that caused the larger than original backup.
>>>     
>>>       
>> Without -H each multiply-linked file will turn into multiple copies, taking
>> up more space.
>>
>> Without -S the holes in sparse files will be filled with zeroes, taking
>> up more space.
>>
>> --Mike Bird
>>
>>   
>>     
>     Thanks Mike I had no idea that was happening. I will check this 
> evening and see how huge my regular backup is. It doen't use -S or -H. 
> Be interesting.
>
> Karl
>
>
>   
    More and more interesting. I checked my regular backup and it is 2.9 
GB. This is close to the 2.87 GB I really have now. I am using rsync 
-avz /usr /media/disk and there are like 8 of these.

Karl


-- 

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.
   PGP 4208 4D6E 595F 22B9 FF1C  ECB6 4A3C 2C54 FE23 53A7





More information about the ubuntu-users mailing list