Skip to content

Backup and restore

Settings → Backup & restore exports everything your organisation holds into one encrypted file, and restores from one. It's for administrators.

What a backup contains

  • your rules and files, with their full history
  • people, groups, permission levels, teams, roles, registered repositories and settings
  • the security log
  • variable values, secrets included
  • the token or deploy key for your git remote, and the access details for each registered repository

Because it holds all of that, a backup is always encrypted with a passphrase you choose. Keep the passphrase safe: without it, nobody can open the backup, Krathos included.

Restoring

Restoring takes two steps:

  1. Upload the backup and enter its passphrase. Aegis checks and reads it without changing anything, then shows what's in it, how it differs from what you have now, and whether it can be restored.
  2. Type RESTORE to confirm. Aegis replaces your organisation's data with the backup's and records the restore in Activity.

A restore replaces everything: every person, API key and setting, the security log, and all your rules and files. Everyone is signed out, and you sign in again with an account from the backup.

Backups up to 256 MiB can be uploaded.

What doesn't come back

If something in the backup can't be restored, such as a git remote address Aegis no longer accepts, a secret or a stored credential, the restore still finishes and the screen lists what to enter again.

Restoring a backup from another organisation

Each backup records the organisation it came from. If you upload one from a different organisation, the restore screen says so and asks you to confirm that separately, as well as typing RESTORE.

This is how you move an organisation's setup into another organisation. It replaces this organisation's people, API keys, settings and rules with the other one's.