Backups and restore

Back up a WordPress site's database and files, and restore a verified backup.

Last updated

A backup holds the site's database and its wp-content folder (themes, plugins and uploads). DASTER encrypts each backup and stores it in the region's storage, then reads it back to check it before marking it Verified. Only verified backups can be restored.

Take a backup

  1. Open the site and choose the Backups tab.
  2. Choose Back up now.

The site keeps serving visitors while the backup runs. The backup appears in the table with its date, type, size, status and checksum.

DASTER also takes a backup by itself before it updates a plugin or theme. These show a different type in the table.

Note: Scheduled backups are not available yet. The schedule stored in a site's settings is not run in production, so take a backup with Back up now before you make a large change.

Restore a backup

  1. On the Backups tab, choose Restore next to a verified backup.
  2. Type the site's address name to confirm.

Restoring needs a sign-in within the last 10 minutes. DASTER checks the backup again, restores the files and database into a new copy of the site, switches the site to that copy and checks that it answers. The site keeps answering during the restore. The copy that ran before is kept until the next restore, then removed.

Limits

  • A backup can hold up to 34 MiB: the database dump plus the compressed wp-content. A larger site is refused with backup_too_large.
  • While a backup or restore runs, other changes to the site are refused with site_busy.

With the API

HTTP
POST /v1/projects/{projectId}/wordpress/sites/{siteId}/backups?organizationId={organizationId}
Content-Type: application/json
X-Daster-Csrf: <csrf>

{ "kind": "manual" }

manual is the only kind you can request. The answer is the backup record; its state is verified when the check passed.

HTTP
POST /v1/projects/{projectId}/wordpress/sites/{siteId}/backups/{backupId}/restore?organizationId={organizationId}
Content-Type: application/json
X-Daster-Csrf: <csrf>

{ "confirmed": true }

A backup that is not verified, or belongs to another site, is refused with backup_not_restorable (409). Without a recent sign-in the answer is fresh_confirmation_required (403).