BlogReferenceSettings

Restora settings explained: schedules, retention, before updates, other plugins’ backups, excluded paths, other tables, email

Every setting on the Restora screen, its allowed values and its default, including how to leave other plugins’ backups and any files or folders out of a backup, what is always excluded, and how to add database tables that do not carry the WordPress prefix.

4 min readPerforks

The Restora settings: schedule, how many backups to keep and what to leave out

All of Restora's settings live under Schedule and settings at the end of the Restora screen, and all of them have a sensible default, which is why the first backup needs none of them. Here is each one, with its range and default. Restora Pro adds its own cards (licence, encryption, remote storage, emergency recovery, remote access, other sites), which have their own articles.

Schedules

SettingValuesDefault
Full site backupOff · Every day · Every 2 days · Every 3 days · Every week · Every 2 weeks · Every 15 days · Every monthOff
Database backupthe sameOff
Time of dayHour 0–23, Minutes 0–59, in the site's time zone03:00
Scheduled backups to keep1–100, of each kind5
Email if a scheduled backup failsone address, or emptyempty

“Every month” is counted as 30 days. A full backup contains the database, so when both schedules are due at the same time only the full one runs, and it counts for both. Retention keeps the newest N scheduled backups of each kind, the newest 2 safety backups and the newest few before-update backups; backups made by hand or from WP-CLI are never deleted automatically. How schedules behave is in scheduling backups.

Before updates

SettingValuesDefault
Before updatesOff · Back up the database · Back up the database, plugins and themesOff
keep1–203

“Taken just before WordPress updates a plugin, a theme or itself, from the dashboard, from WP-CLI or automatically. The update waits for it, so media is never included; one backup covers all the updates of the next ten minutes. If the backup fails, the update still goes ahead.” Installing something new does not trigger it; only updates do.

Backups of other plugins

Restora looks for the backups other plugins keep on the site and lists each plugin it finds, with its folder and size. It knows Duplicator, UpdraftPlus, All-in-One WP Migration, WPvivid, Backup Migration, BackWPup, Solid Backups and WP-DB-Backup, and where a plugin was told to use another folder, it reads that folder from the plugin's own settings. “Choose which of them you do not want in your backups: what is ticked is left out, so that a backup does not carry other backups inside it. Untick one to include it.”

All are ticked by default, and a plugin that appears later starts out ticked. A folder setting that points at the site's own folders (the WordPress folder, wp-content, uploads, plugins, themes) is ignored, so a wrong value in another plugin can never leave part of your site out. If no such backups are on the site, the setting says so. More on why this matters in why your backup is so large.

Leave out of file backups

A text box, “One per line: a path from the WordPress folder (wp-content/uploads/videos) or a pattern (*.log). Cache folders are always left out.” Up to 100 lines. Two kinds of line:

  • A path, relative to the WordPress folder, such as wp-content/uploads/videos or wp-content/uploads/2019: that file or folder and everything under it is skipped. Paths may not climb out of the WordPress folder (.. is refused).
  • A pattern with *, such as *.log or *.mp4: matched against each file's or folder's name and against its full path inside the archive.

Always left out, whatever you enter: under wp-content the folders cache, upgrade and upgrade-temp-backup; Restora's own backup folder; the .maintenance file; and Restora's own runner, recovery and installer files. Developers can add to the list with the restora_exclude filter. The Details panel of every backup lists what was “Left out on purpose”, so you can see the exclusions that applied when it was made.

Restora also skips, and reports in the log, files it cannot read and names a restore could not write safely everywhere (a line break, a backslash or a colon in the name, a trailing dot or space). Symbolic links and junctions are followed once and never back into a parent folder.

Other database tables

A database backup always takes the tables that start with this site's prefix (the one in wp-config.php; the setting says which). Tables without that prefix are listed under Other database tables: “These do not, so they were made by custom code or belong to another application that shares this database. Tick the ones that belong to this site: they are backed up and restored together with WordPress. Leave out tables of other applications, because a restore would turn them back too.” Another WordPress site sharing the database is recognised whatever its prefix, and is never backed up or restored with this one. New tables that appear after you last saved are marked “new”, and the Restora screen points them out at the top (“Database tables outside WordPress that are not in your backups …”).

Views, triggers, stored procedures and events are never backed up; WordPress does not use them.

Where the settings are kept, and how they survive a restore

The settings are one option, restora_settings, with the schedule's bookkeeping in restora_state. They describe this site rather than its content, so a restore keeps the current values instead of taking the backup's. The same goes for the site's address (siteurl, home) and the name of the backup folder. Deleting the plugin leaves the backups where they are; installing it again finds them.

Capability and constants

  • restora_capability filter: the capability needed for every Restora screen and action, manage_options by default (manage_network_options on a network).
  • define( 'RESTORA_DISABLE_CLI', true ); in wp-config.php: switches the WP-CLI commands off.
  • restora_time_budget filter: seconds of work per request, 20 by default or half of max_execution_time if that is lower, never under 5.