Back up and restore the server
This page is for on-premises servers. In the cloud, IZT looks after the server.
What to back up
Section titled “What to back up”| What | Where | How often |
|---|---|---|
| The database | Your database server | Regularly, with your usual database backup tools |
| The data folder | The volume mounted at /data | After first setup, and whenever the database key changes |
| The recovery kit | The two files you downloaded during setup | Once, kept offline |
Every secret in the database is encrypted with the database key, which is not stored in the database. A database backup on its own cannot be restored: you also need the key, either from the data folder (/data/secrets) or from the database key backup in your recovery kit.
If you change the database key
Section titled “If you change the database key”An instance owner can rotate the database key under Instance › Identity, in the Change the identity key card, with Rotate database key. Blink seals every secret again with a new key, and the old database key backup no longer opens anything, so:
- Enter a passphrase for the new backup (at least 12 characters), confirm it, and select Rotate and download.
- Prove the downloaded backup opens with that passphrase when the console asks.
- Replace the old database key backup in your recovery kit.
- Back up the data folder again.
If you have lost the database key backup file, rotating the database key is also how you get a new one.
Restore on new hardware
Section titled “Restore on new hardware”Use this when the original server is gone and you are bringing Blink back from backups.
-
Restore your database backup on the new database server.
-
Copy the database key backup (
blink-kek-<instance>-<date>.json) to the new host, somewhere the container can read it. The container runs as an unprivileged user (uid 65532), so the file must be readable by that user. -
Restore the database key into a new, empty data volume. The server asks for the recovery kit passphrase:
Terminal window docker run --rm -i -v blink-data:/data -v /path/to/kit:/kit:ro \<blink-server-image> -restore-kek /kit/blink-kek-<instance>-<date>.jsonInstead of typing it, you can pass the passphrase in the
BLINK_KEK_PASSPHRASEenvironment variable. The command writes the key into/data/secrets, prints which instance it restored, and exits. -
Start the server as usual (see Install Blink on your own server), pointing it at the restored database and the same data volume.
-
Point your DNS name at the new server.
The server refuses to start if the data volume belongs to a different installation than the database, so you cannot mix them up by accident.
Because the server’s identity comes back with the database, your Access agents reconnect on their own once the DNS name points at the new server. You do not need to reinstall them.
If the server’s identity was lost or stolen
Section titled “If the server’s identity was lost or stolen”If you think someone else has a copy of your server’s identity key (for example, a stolen backup or disk image), the recovery key in your recovery kit lets you replace it without reinstalling your agents. An instance owner does this under Instance › Identity with Recover with the recovery file. The change goes to IZT and then to every Access agent, and you get a new recovery file. If the server itself may be compromised, rebuild it from clean backups first, then recover. If you are unsure, contact IZT before you start.
Question about this page?
Ask the AI assistant. It starts from this page, then searches the rest of the docs.
Ask Blink AI
Answers are AI-generated from the docs and may contain mistakes. Verify with the linked pages.