Create SQLite backups, export a recovery key, and restore SlackHive safely after host loss.
SlackHive includes built-in database backups for CLI installs that use SQLite. Backups are designed for disaster recovery: recovering agents, users, settings, jobs, histories, encrypted secrets, and other platform state on the same host or a fresh host.Open Settings -> Backups as a superadmin.
The data-YYYYMMDD-HHMMSS.db file with SlackHive state
Recovery-key file
A password-wrapped copy of the encryption key used for stored secrets
Recovery-key password
The password that unwraps the recovery-key file
Store the recovery-key file and its password separately from the database backups. A database backup contains encrypted secrets, but it cannot decrypt them without the recovery key.
Automatic backups are enabled by default for SQLite installs.Default schedule:
Setting
Default
Enabled
Yes
Every
24 hours
Keep latest
5 backups
Location
~/.slackhive/backups/
SlackHive creates backups with SQLite VACUUM INTO, which produces a consistent snapshot while the app is running. The runner also prunes old data-*.db files beyond the retention count.Change the schedule from Settings -> Backups -> Automatic backups. Changes are stored in SlackHive settings and do not require a restart.
From the dashboard, click Back up now.From the CLI:
slackhive backup
When SlackHive is running, the CLI asks the runner to create a consistent live snapshot. When SlackHive is stopped, it copies the closed database file directly.To write to a specific path:
Store the downloaded slackhive-recovery-*.json file somewhere safe.
Store the password separately.
The password must be at least 16 characters and pass basic strength checks. The recovery file does not contain the plaintext key; it contains the encrypted key wrapped with your password.
The built-in backup engine is SQLite-only. If you run SlackHive against Postgres, use your normal Postgres backup tooling, such as pg_dump or managed database snapshots.