BlogTroubleshootingSchedules

Scheduled backup did not run: Site Health says “The newest backup is older than the schedule should allow”

What the Restora checks in Site Health mean (“No backup schedule is turned on”, “The last scheduled backup failed”, “The newest backup is older than the schedule should allow”, and Pro’s “The emergency recovery page is not set up”), and how to make scheduled backups run on time.

3 min readPerforks

Site Health warning that the newest backup is older than the schedule should allow

Restora adds a “Backups” check to Tools › Site Health, and Restora Pro adds “Emergency recovery”. They are the quickest way to see whether the site is really being backed up. Here is what each result means, and the fix for a scheduled backup that did not run.

The Backups check

ResultMeaning
“Your site is backed up regularly”A schedule is on and the newest backup is within the expected interval.
“No backup schedule is turned on”Restora only backs up when someone presses the button. Turn on a schedule under Schedule and settings.
“The last scheduled backup failed”Critical. The description quotes the reason, for example “The scheduled backup 9 hours ago did not complete: Not enough free disk space … Until the next one succeeds, the site may have no recent backup.”
“The newest backup is older than the schedule should allow”A schedule is on, but the newest backup is too old: Restora allows the schedule's interval plus a grace of 2 days for a daily schedule, 3 days for up to weekly, 5 days for longer ones.

The same information is on the Restora screen (“Last scheduled backup: completed on …” or “failed on … (reason)”) and in wp restora status, which exits with 1 for anything but “good”.

Why a scheduled backup is late or missing

WP-Cron only runs when the site is visited

Restora schedules its backups through WP-Cron, and WordPress runs WP-Cron on page visits. A site with few visitors at night starts its 03:00 backup with the first visitor in the morning; a site with almost no visitors may skip days. Visits answered by a page cache or a CDN may never reach PHP at all, so a busy cached site can behave like an empty one. The fix is a server cron job that calls wp-cron.php regularly (step by step in setting up a real cron job):

*/15 * * * * curl -s https://example.com/wp-cron.php > /dev/null

If DISABLE_WP_CRON is set in wp-config.php, this line is the only thing that runs scheduled tasks at all. Some hosts (and some caching setups) already run WP-Cron from the server; check the hosting panel before adding a second line.

The site cannot call itself

Once started, a scheduled backup keeps itself going with requests to the site's own admin-ajax.php, with a cron event a minute later as the fallback. If loopback requests are blocked (HTTP authentication on the whole site, a firewall that allows only your own IP, a host that refuses a server calling itself), the backup starts and then crawls or stalls. Allow requests from the server's own address. WordPress's own Site Health has a “loopback request” test that shows the same problem.

The host stopped it half-way

The email says “The job stopped responding and was abandoned.” Hosts stop PHP requests that use too much time or too many resources; since Restora 1.4.1 a scheduled backup repeats the step that was stopped and carries on. If yours is older, update it. If the backup is abandoned on a current version, see backup stops or fails.

Another job was running

Only one job runs at a time. A restore, an upload or a backup started by hand at the scheduled moment makes the scheduled one wait and try again a little later.

The backup itself failed

Then the check says so, and the email set under Email if a scheduled backup fails carries the reason. The causes and fixes are in backup stops or fails.

The schedule was just changed

Changing a schedule does not start it over, and never runs a backup at once: the next run is computed from the last scheduled backup, or, if that date has already gone by, from the chosen time's next turn. The line under the schedule says exactly when: “Next: …, then every 3 days. Counted from the last scheduled backup, on ….” If you want a backup now, press Create backup.

The Emergency recovery check (Pro)

“The emergency recovery page is not set up” (recommended) means Pro is licensed but no recovery page exists yet. “If WordPress stops loading, a white screen or a broken database, the Restora screen is out of reach too. The recovery page is a separate file that restores a backup without WordPress; it has to exist before the bad day.” Setting it up takes a minute: see the recovery page. The Dashboard and Plugins screens show the same reminder until it is done or dismissed.