Skip to content

Backups and Exports

Two exports with different jobs — one to work on, one to survive with — and the rule that an inventory's backup must live somewhere the loss cannot reach.

The spreadsheet export

The simple export is a CSV file: one row per entity (the lab's held 19 rows — its 20th entity arrived later), with columns for every standard field, prefixed HB. (HB.name, HB.serial_number, HB.purchase_price, HB.asset_id, locations and tags spelled out in words), plus one column per custom field (transcript t19; the lab's file is kept at homebox-lab/ entities-export.csv). This is the export for working on the data: sorting in a spreadsheet, handing a room's contents to a removals firm, re-importing after edits — the matching import endpoint takes the same shape back in.

The full group export

The serious export is a job: you ask for it, the program builds it in the background, and you download a ZIP when its status reads completed (transcript t19; the lab's is kept as homebox-lab/group-export.zip). Inside the lab's 6.4 KB archive:

  • JSON files for the whole model — entities, entity types and fields, tags and their links, templates, maintenance entries, attachments' records, notifiers;
  • an attachments/ folder holding the actual uploaded files;
  • a manifest.json describing the package.

That is the entire household, data and documents together, in one portable file — the thing the matching group import can rebuild a household from.

What a backup must be

Chapter 1 said it and this chapter is where it cashes out. An inventory is evidence against a bad day; the backup is evidence's insurance. Concretely:

  • Take the full export, not just the database. The export carries the documents with the data. If you instead back up the live install, take both halves from chapter 2 — homebox.db and the document store — together, from the same moment.
  • Keep a copy off the premises. A relative's house, cloud storage, an encrypted drive at work. The loss the inventory documents is precisely the loss that takes the original with it.
  • Refresh it when the inventory changes. A yearly export ritual — chapter 15's re-check recipe bundles them — beats a perfect export from three years ago.
  • Test the restore-shaped question: could you read the CSV with no HomeBox at all? Yes — deliberately. Even in the worst case, the spreadsheet export is a list a human (or an insurer) can use with nothing but a spreadsheet program. Keep one of those alongside the ZIP.

The check for this chapter: make a full export now, download it, and put a copy somewhere that is not this building. Then open the CSV from the simple export and read your own inventory back. Both files together are the difference between having a system and having a souvenir.