Skip to content

Updates & Backups

The appliance is three layers, and each updates differently.

Layer How it updates Reversible?
Bambuddy (the container) In place, from the Updates tab Yes — automatic rollback
Operating system (Debian packages) In place, from the Updates tab No
Appliance image (the card itself) Re-flash N/A

Upgrading Bambuddy

This is the one you'll do most, and it's the safe one.

The appliance pulls the new container, repins the compose file, starts it, and waits for Bambuddy's health check to pass. If it doesn't, the previous tag goes back and gets restarted. Your database and uploads are never touched — only the image changes.

From the panel: UpdatesCheck for updatesUpgrade.

From the shell:

sudo bambuddy-appliance upgrade-bambuddy v0.2.5

If the pull itself fails — no network, bad tag — nothing changes at all. The compose file still points at the version you were running.


Upgrading the OS

There is no rollback

apt full-upgrade cannot be undone. The appliance refuses to start one with less than 1 GB free and warns when the clock isn't synchronised, but past that point you are trusting Debian. Take a backup first.

From the panel: UpdatesUpdate OS packages. It will tell you if a reboot is required.


Backups

Bambuddy backs itself up from SettingsBackup & Restore. You get one zip containing the database and every data directory, and it restores onto either SQLite or PostgreSQL — the export is portable between them.

Back up before an OS upgrade, before re-flashing, and on a schedule. Keep the file somewhere other than the appliance; a backup on the card you are about to overwrite is not a backup.

See Backup & Restore for the full picture, including scheduled backups.

What the backup does not contain

The backup covers Bambuddy. It does not cover the appliance:

  • the admin panel password
  • the Tailscale login
  • your WiFi credentials
  • any secondary IP aliases

Restore a backup onto a freshly flashed card and you get all your printers, queue, and print history back — and you redo the appliance setup by hand. Budget ten minutes for that, and don't discover it at the worst possible moment.


Re-flashing the image

The appliance image carries the operating system, the setup wizard, the admin panel, and the CLI. It is versioned separately from Bambuddy, and the version you flashed is shown on the Dashboard.

Almost nothing requires a re-flash. The container lane covers Bambuddy, and the OS lane covers Debian. In practice you re-flash for two reasons: the SD card died, or a new image carries a change the two in-place lanes cannot deliver.

Re-flashing erases the card

Everything on it. The appliance's data lives on that card and nowhere else.

  1. Back up Bambuddy, and copy the file off the appliance.
  2. Flash the new image.
  3. Run the setup wizard again.
  4. Restore the backup.

Reseller units lose their identity on a re-flash

A reseller appliance's registration identity lives on the card. Flashing a generic image over it produces an unregistered unit. See Registration before you re-flash one.


What upgrades cannot break

Neither in-place lane touches /var/lib/bambuddy/, where the database and uploads live. An upgrade that fails leaves your data exactly as it was — that is why the Bambuddy lane can roll back at all.

The one thing that does destroy data is re-flashing, and the factory reset. Both are deliberate, and both start with a backup.