Backups (not built yet)
The plain status of backups on the box today, which directories hold your data and secrets, what has to be restored together, and the risks of running without a copy.
Self Host Wizard does not make backups yet. No piece copies its data anywhere, no timer runs a backup, and the admin panel has no backup page. The Home app's own notes list backups among the things not built, and the database, mail and directory pieces each say that backups are not their job. This page says what that means for you and what is where on the box, so you can judge the risk.
Where the data lives
Everything the box keeps is in two places:
| Path | What |
|---|---|
/etc/thx/state.json | what the box should be: IP, domains, companies, teams, enabled apps |
/etc/thx/secrets/<piece>/ | secrets generated on the box for each piece, readable by root only; they never leave the box |
/srv/thx/data/<piece>/ | each piece's persistent data: mailboxes, files, calendars, databases |
/srv/thx/pieces/<piece>/ | the rendered Compose project and its settings, rewritten by every thx apply |
People and their groups are not in the state file; they are in the directory's own data under /srv/thx/data/lldap/.
What must travel together
Some pieces only work with the secrets they were created with. The directory is the clearest case: it refuses to start ("private key has changed") when its key no longer matches its database, so its secrets folder and its data must always be restored together, never one alone. Treat every piece the same way: keep a piece's data and its matching /etc/thx/secrets/<piece>/ in the same copy.
The rendered projects under /srv/thx/pieces/ are not data: thx apply writes them again from the state and the secrets.
Why "same account" is not enough
Even when backups are built, a copy kept inside the same account as the server shares the account's fate: if it is closed, the box and the copies go together. A company that depends on the box should keep a second copy somewhere else.
Deleting is final
Without backups, deletions cannot be undone by an admin. Some apps keep their own trash or history and some do not: the whiteboard keeps no board history, so a deleted board is gone. Check an app's page before you count on undo.
What to do today
- Keep the box for work you can afford to lose, or that also lives somewhere else.
- Keep mail in a client that stores a local copy as well, if mail matters.
- Watch this page: it will describe the real procedure, with its tested commands, once backups exist.