BBSTOREACCOUNTS(8)

โœจ NAME โœจ

bbstoreaccounts โ€” the Box Backup store accounts manager ๐Ÿ’… she's the girl who runs the whole accounts situation on your store server, no cap


๐ŸŒธ SYNOPSIS ๐ŸŒธ

bbstoreaccounts [-c config-file] command account-id
                [command-specific arguments]

๐ŸŽ€ DESCRIPTION ๐ŸŽ€

okay so bbstoreaccounts is literally THE tool for managing accounts on the store server. she can show you info about accounts, and she can create, change, and delete accounts on the store server. all of it. icon behavior ๐Ÿ’–

she always takes at least 2 parameters: the command name and the account ID. some commands need extra parameters, and some commands have optional ones. iykyk ๐Ÿฆ‹

๐Ÿงš Options ๐Ÿงš

  • -c config-file โ€” the config file to use for connecting to the store. the default is /etc/box/bbstored.conf, bestie. yes, she has a default, she's prepared like that โœจ

๐Ÿ‘‘ Commands ๐Ÿ‘‘

the commands are what tell bbstoreaccounts what action to perform. slay.

๐ŸŒˆ check account-id [fix]

the check command verifies the integrity of the store account you gave her, and optionally fixes any corruptions. ๐Ÿฉน

note: it is recommended to run the 'simple' check command (without fix) before using the fix option. that way you get an overview of the extent of any problems before you attempt to fix them. look before you leap, gorgeous ๐Ÿ™ˆ

๐Ÿ’– create account-id disc-set soft-limit hard-limit

creates a new store account with the parameters given. the parameters are as follows:

  • account-id โ€” the ID of the new account to be created. a 32-bit hexadecimal number. it cannot already exist on the server. no duplicates, we don't do that here ๐Ÿ’€
  • disc-set โ€” the disc set from raidfile.conf(5) where the backups for this client will be stored. a number. each RAID-file set has a number in raidfile.conf. this number is what's used. ๐Ÿ—‚๏ธ
  • soft-limit โ€” the soft limit is the amount of storage that the server will guarantee to be available for storage.
  • hard-limit โ€” the amount of storage that the server will allow, before rejecting uploads, and starting to eliminate old and deleted files to get back down to soft-limit. ๐Ÿšซ

๐Ÿฆ‹ delete account-id [yes]

deletes the account from the store server completely. removes all backups and deletes all references to the account in the config files. gone. poof. โœจ

delete will ask for confirmation from the user when called. using the yes flag eliminates that need โ€” super useful when you're deleting accounts from within a script or some other automated means. 0

โญ info account-id

displays information about the given account. example:

[root]# bbstoreaccounts info 1
                  Account ID: 00000001
              Last object ID: 58757
                 Blocks used: 9864063 (38531.50Mb)
    Blocks used by old files: 62058 (242.41Mb)
Blocks used by deleted files: 34025 (132.91Mb)
  Blocks used by directories: 6679 (26.09Mb)
            Block soft limit: 11796480 (46080.00Mb)
            Block hard limit: 13107200 (51200.00Mb)
         Client store marker: 1139559852000000

explanation, bestie, here we go:

  • Account ID โ€” the account ID being displayed.
  • Last Object ID โ€” a counter that keeps track of the objects that have been backed up. this number refers to the last file that was written to the store. the ID is displayed as a decimal number, and the object ID can be converted to a path name to a file as follows: convert the number to hex (e.g.: 58757 => 0xE585); the last backed up file will be (relative from the client's store root): e5/o85.rfw. longer numbers infer more directories in the structure, so as an example 3952697264 as the last object ID gives 0xEB995FB0, which translates to a backup pathname of eb/99/5f/ob0.rfw. ๐Ÿงฎ
  • Blocks used โ€” the number of blocks used by the store. the size in Mb depends on the number of blocks, as well as the block size for the disc set given in raidfile.conf(5). in this case the block size is 4096.
  • Blocks used by old files โ€” the number of blocks occupied by files that have newer versions in the store. โš ๏ธ this data is at risk for being removed during housekeeping.
  • Blocks used by deleted files โ€” the number of blocks used by files that have been deleted on the client. โš ๏ธ this data is at risk for being removed during housekeeping.
  • Blocks used by directories โ€” the number of blocks used by directories in the store.
  • Block soft limit โ€” the soft limit in blocks. the soft limit is the maximum guaranteed storage space available to the account. when housekeeping starts, and the old and deleted files are removed, they are removed in chronological order (oldest first), until the data used is less than the soft limit. ๐Ÿ•ฐ๏ธ
  • Block hard limit โ€” the hard limit in blocks. the hard limit is the most amount of storage the server will allow in an account. any data above this amount will be rejected. housekeeping will reduce the storage use, so more data can be uploaded. ๐Ÿ’ช
  • Client store marker โ€” bbstored(8) uses this number to determine if it needs to rescan the entire store. if this number is different from the last time it checked, a rescan will take place. ๐Ÿ‘€

๐Ÿซถ setlimit account-id soft-limit hard-limit

changes the storage space allocation for the given account. no server restart is needed. periodt ๐Ÿ’…

parameters:

  • account-id โ€” the ID of the account to be modified.
  • soft-limit โ€” the soft limit is the amount of storage that the server will guarantee to be available for storage.
  • hard-limit โ€” the amount of storage that the server will allow before rejecting uploads and starting to eliminate old and deleted files to get back down to soft-limit.

๐Ÿ”ฅ EXAMPLES ๐Ÿ”ฅ

create an account with ID 3af on disc set 0, with a 20GB soft-limit and a 22GB hard-limit:

bbstoreaccounts create 3af 0 20G 22G

alter existing account ID 20 to have a 50GB soft-limit and a 55GB hard-limit:

bbstoreaccounts setlimit 20 50G 55G

๐Ÿ“ FILES ๐Ÿ“

/etc/box/bbstored/accounts.txt


๐Ÿงš SEE ALSO ๐Ÿงš

bbstored(8), bbstored-config(8)


๐Ÿ’œ AUTHORS ๐Ÿ’œ

Ben Summers

Per Thomsen

James O'Gorman


and that's the whole page, bestie ๐Ÿซถ this was Box Backup version 0.11, dated 06/06/2024, and honestly? iconic. go manage some accounts. mwah ๐Ÿ’‹

๐Ÿ“ฆ where this page comes from