30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Restore A Preset Backup

litespeed/restore-preset-backup rolls the configuration back to a backup taken before a preset was applied.

It takes the timestamp reported by litespeed/list-preset-backups. An unknown timestamp is refused rather than silently doing nothing.

At a glance

Abilitylitespeed/restore-preset-backup
ToolsetLiteSpeed Cache — toolset/litespeed
GroupLiteSpeed Cache › Toolbox
RequiresLiteSpeed Cache, active on the site
Capabilitymanage_options
SafetyWrites data
RepeatableNot idempotent — each call changes the row set, so re-running is not a no-op
Ships inAcrossAI Abilities Manager 0.0.34 and later

Rolling back replaces everything too

This replaces the current configuration wholesale with the backed-up one. Anything configured since that backup was taken — exclusions added while fixing what the preset broke, settings tuned since — is replaced along with everything else. Rolling back is not partial.

How it works

The refusal matters because the alternative is worse than an error. A restore given a timestamp it cannot find has nothing to apply, and a silent no-op looks exactly like a successful restore until somebody checks the settings.

That would be a bad thing to discover while recovering from a broken preset, which is precisely when this ability gets used.

The restore is wholesale, in both directions. It does not merge the backup with the current configuration, and it does not preserve changes made since — so work done fixing the problem is rolled back along with the problem.

Restoring does not purge. The cached pages and generated assets were built under the configuration you just replaced, so purge afterwards.

Input

NameTypeRequiredWhat it is
timestampstringYesThe backup timestamp, from litespeed/list-preset-backups.
confirmbooleanYes — must be trueThe irreversibility gate. Without it the call is refused before anything is touched.

What comes back

NameTypeWhat it is
restoredstringThe backup that was restored.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Roll LiteSpeed back to how it was before the preset.

It resolves to one call:

{
  "ability": "litespeed/restore-preset-backup",
  "parameters": {
    "timestamp": "2026-09-20_14-05-11",
    "confirm": true
  }
}

Worth knowing

  • An unknown timestamp is refused, not ignored.
  • Everything configured since the backup is replaced too.
  • Purge afterwards — cached output was built under the old configuration.
  • Get the timestamp from the listing; do not guess the format.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading