Administration

Backup and recovery

Protect configuration and data, and restore them.

2 min read
On this page

What to back up

PathContents
/etc/hossidarkConfiguration and policies
/var/lib/hossidarkEvidence, 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

  1. Install the same version on the replacement server.
  2. Stop the service: sudo systemctl stop hossidark.
  3. Extract: sudo tar xzf hossidark-<date>.tar.gz -C /.
  4. Start: sudo systemctl start hossidark.
  5. 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.

WhenWhat
Before every update or large changeSettings backup from terminal menu 4 Services → Backups
WeeklyFull backup with the commands above, copied off the appliance
MonthlyTest a backup in the terminal to prove it can be restored
Before hardware work or migrationFull 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

SymptomLikely causeAction
Service fails after restoreVersion differs from the backupInstall the version the backup was taken from
Licence refusedNew hardwareMove the licence
Checksum mismatchDamaged or altered fileUse an older backup

If it still fails, export a support bundle from terminal Support → Export support bundle and contact Hossidark support.