Turn on the backup gate for destructive tools

MaintenanceIntermediate~10 min

Before you start

Plugin version 1.13.0 or newer, and UpdraftPlus. The backup gate is a Settings option that starts off, and only you can turn it on, in wp-admin. Enable Backup status and List backups on the Abilities tab so the agent can check readiness; they need a user who can manage options and are refused on a multisite network.

Asking an agent to check for a backup works until the day nobody asks. The backup gate makes it a rule instead: the tools you pick refuse to run unless there is a recent database backup that passed a check.

The agent cannot turn the gate on. That stays with you in wp-admin. What it can do is tell you whether your backups would open the gate today, so you do not switch it on and find every risky tool blocked.

The prompt
I want to turn on the backup gate. Only read.
Read the backup status and list the recent backup sets. Tell me:
- whether the gate is on now, and if it is, whether it is satisfied and why not
- whether there is a good database backup from the last 24 hours, and which
check it passed
- whether my newest backups are kept on this server, off-site only, or both
- whether any recent backup was reported as too large to verify
Then tell me in plain words whether turning the gate on today would block the
tools I tick, and whether I would need Large backups or Off-site backups
switched on. Do not suggest ticking any tool for me; I will choose.

After you turn the gate on and tick your tools under Settings, ask the agent to read the backup status once more. It should report the gate as on and satisfied.

Why this is safe to run

Both tools are reads, and neither can start a backup or change a setting. The gate itself is off by default and only offers destructive and high-risk tools to tick. Turned on with nothing ticked, it holds nothing back. Only the database file is checked, so a database-only backup counts, and so does a backup kept on this server. Remember that neither protects files such as plugins or uploads, and a backup on the same server is lost if the server is.

On a multisite network the backup check does not run, so every ticked tool is refused while the gate is on. For a one-off check without the gate, use check the latest backup before risky work.

Already connected? Ask your agent for the “turn on the backup gate for destructive tools” recipe.

How it works

  1. Read the backup status and recent backup sets, including whether the gate is on and satisfied.
  2. Explain which kind of backup will open the gate and which will not.
  3. You turn on the gate under Settings and tick the destructive and high-risk tools it should cover.
  4. Switch on Large backups or Off-site backups only if your backups need them.
  5. Read the status again to confirm the gate is on and satisfied.

Questions

What happens when the gate refuses a tool?
Agents still see the tool. Calling it returns a clear refusal saying the site owner requires a checked backup from the last 24 hours. If a recent backup exists but has not been checked yet, the refusal says so and to try later. Reads, and the two backup tools, are never held back.
What if my backups are large or kept off-site?
A small database file is checked when a tool is called, about 8 MB or less by default. Anything larger is checked in the background about once an hour. A backup too large to check needs Large backups on, which accepts it on its size alone. A backup kept only off-site needs Off-site backups on, which trusts UpdraftPlus's own record. Both switches start off.
Does the gate cover every tool on the site?
It covers the tools you tick from this plugin's own tools and other plugins' tools brought in through the Bridge. Tools another plugin serves from its own MCP server are outside the gate. Without UpdraftPlus, every ticked tool is refused.