Article · 3 min read · Getting started

kubespin: Back up and restore a WordPress site

Every WordPress site is backed up on its own server. You can add encrypted copies on another server you own, in S3, or in your own OneDrive. See [[backups]] for how copies are made.

Every WordPress site is backed up on its own server. You can add encrypted copies on another server you own, in S3, or in your own OneDrive. See kubespin: Backups for how copies are made.

What a backup holds

The database, wp-content, any custom nginx settings and the site’s settings, with checksums. A backup only counts once it has been unpacked again and verified.

Backups also hold visitors’ data. They are yours to delete when someone asks. See kubespin: Privacy.

How often, and how long they’re kept

On the site’s Backups tab, choose Change.

  • How often: Daily (the default), Twice a day, Weekly or off. Backups run in the server’s maintenance hour.
  • How long: three numbers. Keep every backup for n days, then one a week for n weeks, then one a month for n months, or forever. One line underneath says how far back that goes.
Days Weeks Months
On the server (default) 14 8 6
Off the server: another server, S3 or OneDrive (default) 30 12 12

The newest backup, and the 5 newest taken before updates, restores and moves, are always kept.

A backup is also taken before every update and every restore.

Copies off the server

  1. Make your recovery key in Settings › Backups, and set up where copies go: another server, S3 or OneDrive.
  2. On the site’s Backups tab, choose Change and turn on On another server, In S3 or In OneDrive. Each has its own schedule and keep rule.

Each backup is checked for malware before a copy leaves the server. Each backup in the list shows its copies: Server, Another server, S3 or OneDrive · encrypted.

Back up now

Choose Back up now on the Backups tab.

Restore

  1. On the Backups tab, pick the backup and choose Restore.
  2. Type the site’s name to confirm.

The site’s current state is backed up first, so a restore can be undone.

Restore works from any copy: on the server, on another server, in S3 or in OneDrive. You can also restore to a new site, on the same server or another, including after the old server is lost; the site’s addresses are rewritten for its new name. A backup marked Malware found is never offered as the one to restore.

Opening a backup without kubespin

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

Other apps

Apps other than WordPress back up the data volumes you choose. See kubespin: Back up an app’s data.