Article · 3 min read · Backups

kubespin: Backups

kubespin backs up your WordPress sites in full, and the data volumes of your other apps. Backups run nightly on the server, are checked for malware, and are encrypted with your key before a copy leaves the server. kubespin never keeps your

kubespin backs up your WordPress sites in full, and the data volumes of your other apps. Backups run nightly on the server, are checked for malware, and are encrypted with your key before a copy leaves the server. kubespin never keeps your backups itself.

What’s backed up

Each backup is one archive with a manifest listing every file’s checksum. A backup counts only once its checksums verify where it’s stored.

Where copies go

Where What it’s for
On the server Always. The fastest restore.
On another server A server of yours with spare disk, such as one at home, so backups don’t add to your cloud bill. See kubespin: Back up to another server.
In S3 Any S3-compatible storage: AWS, IONOS, Backblaze, MinIO and others. See kubespin: Setting up S3.
In OneDrive Your own OneDrive: work, school or personal. See kubespin: Setting up OneDrive.

Each destination has its own schedule and its own keep rule. Which destinations you can use depends on your plan. See kubespin: Acceptable usage limits.

How a copy leaves the server

  1. kubespin reads the backup from the server.
  2. It checks it for malware. An infected backup is marked Malware found and you’re notified. See kubespin: Malware scanning.
  3. It encrypts it with AES-256-GCM, with a new key for each backup, wrapped with your account’s backup key. Only your kubespin: The recovery key can open it without kubespin.
  4. It uploads it, then reads it back and checks it.

Servers never hold storage credentials and never need to reach each other: every copy passes through kubespin, encrypted.

Before any copy can leave a server, make your recovery key in Settings › Backups.

How long they’re kept

Three numbers per destination: keep every backup for n days, then one a week for n weeks, then one a month for n months, or forever. The newest backup, and the 5 newest taken before updates, restores and moves, are always kept. Old backups are removed only after a newer one has verified.

Restore

  1. Open the site’s or the app’s Backups tab. Each backup lists the copies it has: Server, Another server, S3 or OneDrive · encrypted.
  2. Pick the backup and choose Restore. kubespin uses the nearest copy that verifies.
  3. Restore it to the same site or app, or to a new one on the same server or another. Restoring a site onto a new server after the old one is lost works the same way.
  4. Type the name to confirm.

The current state is backed up first, so a restore can be undone. A backup marked Malware found is never offered as the one to restore, and the dialog warns before you use it.

Opening a backup without kubespin

Any encrypted copy opens with your recovery key and kubespin-decrypt.py. See kubespin: The recovery key.