Automatic backups don’t work

All of the cloud storage extensions that Servmask offers include the ability to schedule backups. In the rare situation that the automatic backups are not working on your website, there are a few steps that you can take:

  1. Save the settings again by pressing the “update” button on the settings page for your extension
  2. Check that you can do a manual backup to file on your website and a manual backup to your cloud storage
  3. Check that you have traffic to your website to trigger the WP-Cron (more details below)
  4. Check for any failed backups in the storage folder of the plugin (using FTP or file manager)
  5. Contact our support team to use our in-house tool to ensure that your server settings allow backups to the cloud extension
Technical: How does the WP-cron trigger a backup?

The automatic backup function relies on a WP-Cron function being executed. Normal cron jobs run at specific times that are determined by the server settings, but the WP-Cron function runs when the site is visited. The WP-Cron function is beneficial because it means that WordPress powered websites can run correctly on any kind of server setup, eliminating most of the specific server requirements. Some jobs take a lot of time, so each time the page is loaded, WordPress checks whether it is necessary to run the WP-Cron function and makes a request to the wp-cron.php file over HTTP. The main task of this file is to keep running WP-Cron function as a separate background process, without slowing down the load time of the page requested by the person visiting your site.

The WP-Cron function is triggered by a page load, therefore the scheduled backup will not happen if there are few or no page loads on your site when the backup is scheduled.

If this is a problem and you need the backup to run at a particular time, you’ll need to schedule a the cron to run at the time when you request a backup.  Please see this link for more information about scheduling a task.

Hooking WP-Cron into the System Task Scheduler

The life of the WP-Cron function is determined by the required jobs it needs to complete and the execution time, which is set in the server configuration. We recommend a maximum execution time of 500.

A backup can also fail if there are issues with your WP-Cron function. There can be exceptions when the WP-Cron function can’t complete the jobs within the execution time, or if it isn’t working. As the WP-Cron is based on the setup of your web host and the associated server configuration, many issues are not caused by WordPress.

Leave A Comment?