Administration
Backup and recovery
Protect configuration and data, and restore them.
2 min read
On this page
What to back up
| Path | Contents |
|---|---|
/etc/hossidark | Configuration and policies |
/var/lib/hossidark | Evidence, incidents, users, licence state |
Backup
sudo systemctl stop hossidark
sudo tar czf /backup/hossidark-$(date +%F).tar.gz /etc/hossidark /var/lib/hossidark
sudo systemctl start hossidark
sha256sum /backup/hossidark-$(date +%F).tar.gz
Store backups off the appliance, encrypted, and keep the checksum.
Restore
- Install the same version on the replacement server.
- Stop the service:
sudo systemctl stop hossidark. - Extract:
sudo tar xzf hossidark-<date>.tar.gz -C /. - Start:
sudo systemctl start hossidark. - Verify:
curl -ks https://127.0.0.1:1999/api/public/health.
If the hardware changed, transfer the licence first — the licence is bound to the physical server. See Move a licence and Restore from backup.
Endpoint recovery
Recovery covers files and system state through agent recovery points. Full-disk imaging is not part of the product.
Recommended routine
| When | What |
|---|---|
| Before every update or large change | Settings backup from terminal menu 4 Services → Backups |
| Weekly | Full backup with the commands above, copied off the appliance |
| Monthly | Test a backup in the terminal to prove it can be restored |
| Before hardware work or migration | Full backup and licence transfer plan |
Keep at least the last four weekly backups. Monitoring pauses while the service is stopped for a full backup; choose a quiet period.
Protecting the backups
- A backup contains evidence and account data: store it encrypted, with restricted access.
- Keep the checksum next to the file and compare it before every restore with
sha256sum -c. - Never keep the only copy on the appliance itself.
If a restore does not start
| Symptom | Likely cause | Action |
|---|---|---|
| Service fails after restore | Version differs from the backup | Install the version the backup was taken from |
| Licence refused | New hardware | Move the licence |
| Checksum mismatch | Damaged or altered file | Use an older backup |
If it still fails, export a support bundle from terminal Support → Export support bundle and contact Hossidark support.