Rehearsa Backup Tester

By outlawgt

0+ active installationsVersion 1.0.0

Test your backup without touching your live site. Rehearsa checks UpdraftPlus backups and test-boots them privately in your browser.

Description

A backup that says “complete” isn’t proof it will restore. Files get cut short when a backup runs out of time, archives get damaged, and a plugin your site depends on can be left out. You usually find out on the worst possible day: when you restore and get a white screen.

Rehearsa finds out now, without touching your live site.

1. File and database checks (on your server)

  • Every backup file is present and matches the fingerprint UpdraftPlus recorded when it made the backup.
  • Every file inside every zip archive is read and its checksum verified, so damaged files are caught.
  • The database file is read to the end: it must be complete, every table must be fully written, and each table must have the number of rows UpdraftPlus counted.
  • The core WordPress tables are present.
  • Every active plugin and your active theme are actually inside the backup.
  • Plugins that need a newer PHP version than your server has are flagged, a common cause of white screens after a restore.
  • A short “what changed since this backup” summary compares the backup with your live site.

The checks run in small steps, so they work on hosts with short time limits.

2. Test-boot (in your browser)

When the files pass, one click starts a private, temporary copy of the backup inside your browser tab using WordPress Playground. Rehearsa then:

  • imports the database and unpacks plugins, themes and uploads into the test copy,
  • loads the homepage and signs in to the dashboard,
  • catches critical errors and blank pages, and shows the exact PHP error that caused them,
  • counts posts, pages, users and active plugins in the running copy.

You can then click around the test copy yourself. It disappears when you leave the page.

Your live site is never changed, and your backup is not uploaded anywhere. The backup files go from your site straight into your own browser.

Check a backup from your computer

Have a backup you downloaded, or one from your host? Pick the database file (.gz or .sql) and its zip files. They are checked and test-booted entirely in your browser.

Dashboard status

A small dashboard widget shows when your backups were last verified and whether they passed.

What Rehearsa does not do

  • It does not make backups. Keep using UpdraftPlus for that.
  • It never restores anything over your live site.
  • A pass means the backup is complete and starts up. The test copy uses SQLite and has no internet access, so plugins that rely on outside services or special server features may behave differently there. Click around the test copy to check what matters most to you.
  • Multisite networks and encrypted UpdraftPlus databases can’t be test-booted yet.

Rehearsa is an independent plugin and is not affiliated with or endorsed by UpdraftPlus.

External services

The test-boot uses WordPress Playground, a WordPress.org project that runs WordPress inside your browser.

  • What is loaded and when: only when you click “Test-boot” or “Check and test-boot these files”, your browser loads the Playground runtime from https://playground.wordpress.net/ and the WordPress version needed for the test copy. Nothing is loaded from it on any other page.
  • What data is sent: none of your backup data. Your backup files are loaded into the Playground running in your own browser tab and are never sent to playground.wordpress.net or any other server. As with any web request, your browser shares standard request information such as your IP address with the server it loads the runtime from.
  • Service terms and privacy: WordPress Playground is provided by WordPress.org. See the WordPress.org privacy policy: https://wordpress.org/about/privacy/

The file and database checks run entirely on your own server and make no outside requests.

Source code

This plugin includes the WordPress Playground client library (@wp-playground/client 3.1.64, GPL-2.0-or-later) in assets/vendor/playground-client. Its full, human-readable source code is at https://github.com/WordPress/wordpress-playground and the published package is at https://www.npmjs.com/package/@wp-playground/client

Installation

  1. Install and activate Rehearsa.
  2. Go to Tools > Rehearsa.
  3. Click “Check this backup” next to a backup. If it passes, click “Test-boot this backup”.

FAQ

Do I need UpdraftPlus?

To check backups stored on your server, yes: Rehearsa reads UpdraftPlus backups (the free version works). Without it, you can still check a backup from your computer.

Does this change my live site?

No. The checks only read the backup files. The test-boot runs in a separate, temporary copy inside your browser.

Is my backup uploaded anywhere?

No. On the server, Rehearsa reads the files where UpdraftPlus saved them. For the test-boot, the files are sent from your site to your own browser, and nowhere else.

My backup is stored in the cloud only. Can I check it?

Download it to your server from UpdraftPlus first, or download it to your computer and use “Check a backup from your computer”.

What does “Options table is a few rows smaller” mean?

UpdraftPlus leaves out its own temporary job data from the backup, so a small gap in the options table is normal.

My backup is very large. Will the test-boot work?

The checks work for any size. The test-boot has to fit in your browser’s memory, so for large media libraries, leave “Include uploads” unticked. Uploads are still checked on the server.

Which browsers work?

Use a current desktop browser. If the test-boot doesn’t start, try another browser and check that playground.wordpress.net isn’t blocked by a firewall or browser extension.

Screenshots

Changelog

1.0.0

  • First release: server checks for UpdraftPlus backups, browser test-boot with WordPress Playground, check a backup from your computer, dashboard widget.