[Box Backup] How to calculate client current-file usage on server?

E.W. Peter Jalajas boxbackup at fluffy.co.uk
Wed Jan 31 16:24:36 GMT 2007

Hi all,

I'm trying to calculate from the server how many total GB each client
has of their "current real" data files on the server ("current real"
meaning "not overhead, not old, not deleted, not directories, as

sudo /usr/local/bin/bbstoreaccounts info xxxxxxxx:

              Last object ID: 36063
                 Blocks used: 11664892 (45565.98Mb)
    Blocks used by old files: 9001349 (35161.52Mb)
Blocks used by deleted files: 9984669 (39002.61Mb)
  Blocks used by directories: 2798 (10.93Mb)
            Block soft limit: 38400000 (150000.00Mb)
            Block hard limit: 44800000 (175000.00Mb)
         Client store marker: 1170135201000000

I was planning to use this calculation:
Current = (Used - Old - Del - Dir)
but it looks like files that are both old _and_ deleted are counted
twice in the "bbstoreaccounts info" report (35.1GB + 39.0GB > 45.6GB)

Can it be done?  (Is this issue similar in the client "bbackupquery
usage" output, too.)  Any suggestions?  Let me know if I should submit
it as a Feature Request
http://bbdev.fluffy.co.uk/trac/wiki/FeatureRequests .


More information about the Boxbackup mailing list