Docs · Admin

Server & backups

Under Settings → Server & backups (admins).

Public address

Twilio, web forms, Meta and integrations reach Spamurai through its public https address. On the hosted version this is set for you. When you run it yourself:

  • On a server, set it from your domain (see Self-hosting).
  • On a laptop, use ngrok: ngrok http 4310, then Use my ngrok address and Save. Claim ngrok’s free static domain so it never changes.

When the address changes, every space’s Twilio connection is updated automatically.

Backups

  • Run automatically every 24 hours: the database, recordings and the server’s secret key file. The last 14 are kept.
  • Back up now makes one straight away.
  • Backups are on the same disk as the data. Copy them somewhere else now and then; a backup on the same disk doesn’t help if the disk dies.

Where data lives

  • Everything is stored in one SQLite database and a recordings folder on the server’s data disk.
  • A secret key (APP_SECRET) encrypts stored secrets such as Twilio tokens. It’s part of every backup; without it, restored secrets can’t be read.
  • Disk space: app recordings take about 0.25 MB per call minute (about 15 MB per hour) and are never deleted, so the data disk keeps growing. Keep an eye on it and make it bigger in time.

Restore

Stop Spamurai, put the database, recordings folder and .env from a backup in the data folder, and start it again.