BK-BAM(1)

πŸ“¦ version 7.3.3, in alpine 3.24

πŸ’… bk bam β€” BAM utility routines ✨

okay so bestie, this is the bk bam page from the BitKeeper User's Manual, and honestly? it's giving "niche but iconic." let's get into it 🫢


🌸 SYNOPSIS 🌸

like, here's every single way you can call her β€” copy these exactly, no cap:

bk bam check [βˆ’Fq]
bk bam clean [βˆ’an]
bk bam convert [size]
bk bam pull [βˆ’aq] [URL]
bk bam push [βˆ’q] [URL]
bk bam reattach [βˆ’q] ‐
bk bam reload
bk bam repair [βˆ’q] [βˆ’@URL]
bk bam server [βˆ’flqrs] [URL]

πŸ¦‹ DESCRIPTION πŸ¦‹

so BitKeeper Binary Asset Management β€” BAM for short, iykyk β€” is a subfeature that provides support for large binary files, like tool chains, cell libraries, game data, etc. literally the big chunky stuff πŸ’–

BAM differs from traditional binary storage in that the data does not need to be replicated in all clones β€” it may be lazily fetched on demand from a BAM server. lazy girl era but make it infrastructure ✨

The bk bam command is a utility command which provides interfaces for:

  • checking integrity of BAM files
  • removing "orphaned" BAM files
  • converting old binary files to BAM files
  • fetching BAM files from the BAM server
  • pushing local BAM files to the BAM server
  • repairing a BAM pool

In general, the convert or pull interfaces are most likely to be useful β€” the others are typically used debugging. no shade, they're just built different πŸ’…

heads up bestie: in any operation with a βˆ’q option, that option means to run quietly. 🀫

The operations supported are:

  • check β€” Check that the BAM files are present and are not corrupted. If the βˆ’F option is included, then the corruption check is skipped. Any files which are not found locally are looked for in the BAM server. Note: currently there is no way to check for corruption remotely. 😭
  • clean β€” Remove any BAM files that are not referenced by any delta in the repository. If the βˆ’a option is included, then flush local BAM files which are copies from the BAM server. If the βˆ’n option is included, then just say what would be done but do not do it. πŸ‘€
NOTE: this command should never be run in a BAM server since the server may have BAM files referenced only by clients. like, do not. fr fr. πŸ’€
  • convert β€” Convert all files from traditional binary encoding to BAM encoding. Only files greater than a certain size are converted since small files perform better with the traditional encoding. The size, which defaults to 64K, is compared against the initial version of each binary file, and if that version is greater than the size the file is converted. Note that the conversion may be run more than once, but the size used can only decrease, it may not increase. one-way street, bestie πŸŽ€
  • pull β€” This interface is used to transfer any BAM data that is missing from the current repository or its BAM server. This is useful to request any missing BAM data after switching to a new BAM server. With the βˆ’a option the local BAM server is ignored, so all BAM data will be requested. Normally, the local BAM pool contains only those files which have been either checked out locally or created locally, i.e., the BAM pool is sparse. This command may be useful to populate a laptop clone with all revisions for disconnected operation or to set up a new BAM server. main character energy for your laptop tbh πŸ’»βœ¨
  • push β€” This interface is used to populate a BAM server with any BAM files which have been created locally but not sent to the server. In general, this command is not needed because the BAM server is automatically updated if the local BAM files are either cloned or pulled to another repo. she does it herself, honestly πŸ‘‘
  • reattach β€” Used to try and reinsert data into the BAM directory. If your disk crashed and some files were lost from the BAM directory (which bk bam check ‐F will tell you) and you believe you have that data, you can tell bk bam reattach to put it back. 😭🫢 For each file specified on standard input, see if the hash of the file matches one of the missing files. If so, reinsert that file. detective mode: activated πŸ”
  • reload β€” The BAM pool has an on disk binary index that is used for fast lookups stored in:
BitKeeper/BAM/repo‐rootkey/index.db

The data is also stored in a text format index:

BitKeeper/BAM/repo‐rootkey/BAM.index

Should the binary index get corrupted, it may be recreated running this command. glow-up for your index file, we love a comeback 🌈

  • repair β€” Similar to bk bam check except that it will attempt to repair any corrupted data. By default, it will look for good data in the BAM server, but you may specify a different location with [βˆ’@URL] (which may be repeated). 🩹 fixer-upper vibes
  • server β€” Used to report or, with the optional URL, set the BAM server from which BAM data will be fetched. If the βˆ’r option is set then the current server URL is deleted. When the BAM server is changed, this command will automatically query the new server and transfer any BAM data it is missing from the old BAM server. This query and transfer may be suppressed with the βˆ’s option. Use the βˆ’f option to force changing or removing the BAM server setting if the repository is currently defined as a BAM server. The βˆ’l option causes the existing BAM server URL to be printed for scripts. And βˆ’q can be used to suppress status messages when the URL is changed. πŸŽ€

πŸ‘€ SEE ALSO πŸ‘€

  • bk‐Howto‐BAM β€” go read it, bestie, it's the whole vibe

πŸ’œ CATEGORY πŸ’œ

Utility πŸ’…


🌸 okay that's the whole page!! BitKeeper Inc made this one, version 1D1, and it's the bk bam(none) manual entry β€” go forth and manage those binaries, queen πŸ‘‘βœ¨πŸ¦‹

πŸ“¦ where this page comes from
  • alpine 3.24: bitkeeper-doc 7.3.3-r1 Β· Apache-2.0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms