Skip to content

Backup and Restore

Whiskers can take an encrypted backup of the whole installation (including every organization's data) and restore from it. The feature is optional: if the backup service is not installed, the page is not shown and backups stay with your own infrastructure tooling.

Backup lives under Admin Panel → Platform → Backup and is available to the platform administrator only. Because the archive contains every organization's data, an organization (tenant) administrator cannot take, list or restore backups.

Two layers work together

Infrastructure backup (your tooling) Application backup (this guide)
Example Server image backup, disk snapshot, database backup The encrypted archive Whiskers takes
Data-loss window Minutes (with continuous archiving) Time since the last backup (default: at most 24 hours)
Moving to another server Easy on the same infrastructure Easy; the archive is independent of the installation type
Consistency between stores Your responsibility Whiskers orders the stores and reconciles them on restore
Very large data Suitable Slows down; on large installations infrastructure backup is the primary path

We recommend using both on a production installation. The application backup does not let you return to an arbitrary second; your database's own continuous archiving does.

What is backed up

Data In the archive
Configuration, users, agents, conversations, knowledge base documents Yes
Audit log and usage records Yes
Knowledge base vectors Yes (can be left out on large installations; regenerated after a restore from the document text stored in the database; no reconnection to the source is needed, but the embedding provider is called again)
Agent memory Yes, always
Files in the file store (if a separate object store is used) Optional; off by default
Sessions, cache, quota counters No; rebuilt after a restore, users sign in again
License and installation identity No (see below)
Application keys No (see below)

Two things you must keep safe

1. The archive encryption key. Backups are encrypted with a key your organization generates; without it no backup is taken and no archive can be opened. You generate it during installation and set it on the backup service. If you lose this key, your backups cannot be opened.

2. The application keys. LLM provider keys and tool secrets are stored encrypted in the database. The application key that decrypts them (in the configuration file) is not in the archive: a key stored next to the archive would let a stolen backup reveal every secret. A restored database does not work without the original application key. The restore checks this itself and does not reopen the installation if the key does not match.

Keep both keys separate from the backups.

Setup

The backup service is enabled on the server by the system administrator who installs Whiskers: they generate the archive encryption key, give the backup service and the application the settings they need, and attach the backup volume to a disk separate from the data disk. These values cannot be entered or viewed in the admin panel — if the archive key passed through the application, it would be a secret living on the same system as the archive. The steps and commands are in the installation package's backup document.

The platform administrator's work (taking backups, scheduling, restoring) starts on the page once the service is enabled. If Platform → Backup does not appear in the menu, or the page shows a key warning, the service is incompletely set up; tell your system administrator.

The page

  • Status: last successful backup, last attempt, next scheduled backup and the state of the off-site target.
  • Back up now: starts a backup immediately. Progress is shown store by store.
  • Archives: date, size, duration, application version, the stores it contains and where it is kept (this server / off-site). If a store is missing from an archive the row says so; that archive alone does not give a full restore.
  • Verify: checks that the archive can be opened and is complete, without restoring it.
  • Schedule and retention: by default one backup every night; the daily backups of the last 7 days and the weekly backups of the last 4 weeks are kept, older ones are removed. Backups taken within the last 24 hours are never removed by this rule; taking a second backup on the same day does not delete the first.
  • Off-site target: an S3-compatible store. Every backup is copied there after it is taken. Test verifies the connection by writing and removing a small object.
  • Restore: see below.

Archives cannot be downloaded from the browser; they are reached through the backup volume and the off-site target.

Do not keep backups only on the same server

Without an off-site target the backups live on the same server as the data and are lost with it. The page and Configuration Health show this as a warning.

Warnings

The platform administrator sees these in Configuration Health:

  • The backup service cannot be reached.
  • No archive encryption key is set.
  • The last backup failed.
  • The last successful backup is older than 26 hours.
  • No off-site target is configured, or the last copy failed.

Restoring

There are two scenarios.

Rolling a running installation back to an earlier backup

Done with the Restore button on the page (or from the command line). It is destructive: everything written after the selected backup is deleted. Therefore:

  1. You type the installation name to confirm.
  2. Whiskers first takes a backup of the current state. If that backup cannot be taken, the restore does not start.
  3. The installation enters maintenance mode: users see a maintenance page, background work stops, and every session is closed (including yours).
  4. The data is loaded, the stores are reconciled, and the application key is checked against the archive.
  5. If the check passes, maintenance is lifted and you sign in again. The Backup page shows the result of the last restore and the name of the backup taken in step 2.

If the check does not pass, maintenance is not lifted and the maintenance page says what failed. A system administrator then needs to intervene on the server.

Your current license and installation identity are not affected.

Restoring into an empty installation

For a lost server, a move to another server, or a restore rehearsal. Since the application is not running yet, the system administrator does this from the command line (steps in the installation package's backup document):

  1. Whiskers is installed on the new server at the same or a newer version; the original application keys and the archive encryption key are set in its configuration.
  2. The archive is placed in the backup volume and the restore command is run.
  3. The application is started.
  4. Load the license again. The license and installation identity are not in the archive; an installation restored into an empty server starts unlicensed. Enter your license file (or coupon) again under Admin Panel → Platform → License. If you have lost the file, you can request it again from AgnosTech.

An archive taken on a newer version cannot be restored into an older installation; this is reported before any data is loaded.

Every action on the page (taking, listing, verifying and restoring backups, lifting maintenance mode) has a command-line equivalent; when the application cannot open it is the only way, and the system administrator uses it.

Restore rehearsal

The only way to know a backup works is to restore it. At regular intervals (for example every three months) follow the "Restoring into an empty installation" steps on an empty server and check that:

  • A user can sign in.
  • An agent answers using a stored provider key.
  • A knowledge base search returns results.
  • Agent memory is in place.
  • The audit log can be read.

Frequently asked questions

Does the system stop while a backup is taken? No. Backups are taken while the system is running.

Can I restore a single organization (tenant)? No. This feature backs up and restores the whole installation.

Can I build a test environment from a backup? Yes, with the "Restoring into an empty installation" steps. The copy does not carry the original installation's license and needs its own.

Why do users sign in again after a restore? Sessions are not backed up; no new session should remain on top of data that has been rolled back.