Skip to content
RackTraceDocs

Backups

On this page

RackTrace makes a backup of your organisation every night. You can also keep your own copy.

Nightly backups#

Every night RackTrace makes a complete backup of your organisation, checks it, and keeps a copy outside the data centre. Every copy is encrypted, with a key that belongs to your organisation only. The Backups card on System status shows the schedule, the last backup and its check, and the off-site copy.

  • Back up now makes a backup straight away, for example before a big change.
  • When the last backup is more than a day old, or the off-site copy failed, the Backups check turns orange or red, and administrators see a warning bar.
  • To get data back, contact RackTrace support: a backup of one organisation can be restored without touching any other.

A full backup of one tenant#

Export & reports → Full backup (JSON) downloads everything in one tenant. An administrator can import that file again as a new tenant. See Export and reports.

Backups in your own storage#

Every night's backup can also go to a bucket of your own, on any S3-compatible storage (AWS S3, Backblaze B2, Wasabi, MinIO, Hetzner, Cloudflare R2 …). It is the complete snapshot of your organisation as gzipped JSON, encrypted in the standard age format: yours to keep and read.

  1. Open Administration → System status and, in the card Copy to your own storage, open Set up a copy to your own storage.
  2. Fill in the Endpoint, Bucket, Region and Folder, and the Access key and Secret key. Tick Path-style addresses for most storage that isn't AWS.
  3. Set Copies to keep (0 = all; the bucket's own rules decide).
  4. Choose how the copies are encrypted (see below): a passphrase (twice) or my own key.
  5. Tick Copy every backup there, click Test and then Save.

The card shows the last copy, or why it failed; a failure also shows as a warning in the backup status. Give RackTrace a key that can only write to that bucket (and list and delete in the folder, to remove old copies).

Encryption: your own key or a passphrase#

The copies are always encrypted. You choose with what:

  • My own key (recommended): only whoever has the secret key can read the copies — RackTrace cannot, because it only gets the public key (age1…). Click Make a key pair: your browser makes the key, saves the secret key as racktrace-backup-key.txt on your computer and fills in the public key. Keep that file safe (a password manager, a safe, two copies): without it nobody can read the copies, RackTrace support included. You can also make the key yourself with age-keygen -o key.txt and paste its public key. Several public keys (one per line) let several people each read the copies with their own key.
  • A passphrase of at least 12 characters. RackTrace keeps it encrypted, because it needs it for every copy. RackTrace cannot tell it to you, so keep it in your password manager.

To read a copy, use the standard age tool (for Windows, macOS and Linux, see age-encryption.org):

age -d -i racktrace-backup-key.txt -o racktrace-….json.gz racktrace-….json.gz.age

Without -i, age -d asks for the passphrase. Or download decrypt-backup.mjs from the card (Node.js 18 or newer, nothing to install): node decrypt-backup.mjs -i racktrace-backup-key.txt racktrace-….json.gz.age, or without -i for a passphrase. Both write the .json.gz.

Did you set a passphrase before this was introduced? Then your copies are still in an older format (.json.gz.rtbk), which decrypt-backup.mjs reads. Enter your passphrase again, or choose your own key, to switch to age.

Something missing or not right? Let us know.