[Box Backup] Storing file sizes server-side as meta data

Ben Summers boxbackup@fluffy.co.uk
Tue, 4 Jul 2006 11:52:26 +0100


On 29 Jun 2006, at 14:15, Martin Ebourne wrote:

> Stefan Norlin <stefan.norlin@infoflexconnect.se> wrote:
>> I was wondering whether it would be possible to store the
>> original file sizes server-side in order to be able to see this
>> information when browsing the store and possibly to calculate
>> the amount of space required to restore files/directories?
>
> I think this is already stored in the directory entries. If not  
> then I would think it could be added. Only the client can see it,  
> but that's what you want anyway. You just need a feature in  
> bbackupquery that retrieves the directory and adds it up for you.

It's probably stored as an incidental bit of data in the attributes.  
The attributes may not be in the directory, they're more likely to be  
in the stored file. So you'd need to write code to put attributes in  
the directory for all files, and then decrypt and display them.

I have considered the exact file size a secret, although of course  
you can work it out to within a few percent.

Ben