cache_backup
Inspect and take local backups of a pod's background cache database.
The pod cache holds the site's own patient reviews and notes, which no run can
recompute, so the SDK keeps recent whole-file snapshots of it beside the
database (see bitfount.cache.backup). Backups are taken automatically when
the cache is opened and by the scheduled cache_backup_runtime flow; these
commands inspect them and take one by hand.
Usage
bitfount cache list --pod my-pod
bitfount cache backup --pod my-pod
Recovery is manual: with the app closed, copy a backup over the cache file and
remove any -wal/-shm siblings beside it.
Classes
Cache
class Cache():Inspect and take local backups of a pod's background cache database.
Methods
backup
def backup(self, pod: str, retain: int | None = None) ‑> None:Take a backup of pod's cache now, regardless of any interval.
Arguments
pod: The pod's name.retain: How many backups to keep; defaults to the configuredcache_backup_retention.
list
def list(self, pod: str) ‑> None:List pod's cache backups, newest first.
Arguments
pod: The pod's name.