Using cPanel cron to ensure scheduled backups run on a staging site

JetBackup for WordPress utilizes WordPress' WP-cron feature to execute schedule backups. However, WP-cron has a limitation that requires the site to be visited to trigger it. This can cause issues for sites that are not publicly accessible such as staging sites or even sites with limited visitors in general. To overcome this limitation, consider utilizing your hosting control panel's cron job feature to visit the site and trigger the WP-cron regularly. Below is an example of how to set this up on a cPanel control panel:


1. Access the cPanel tools interface and navigate to the `Cron Jobs` option



2. From the cPanel Cron Jobs menu, navigate to the Add New Cron Job section further down the page.

 

3. In the Common Settings drop-down select "Once Per Minute(* * * * *)"



4. In the Command field input the following: 

wget -q -O - "http://example.com" >/dev/null 2>&1

Note: Remember to replace "example.com" with your website URL.




5. Click Add New Cron Job and finish!



Remember to verify you have a job running on a schedule!

  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

Where do I download JetBackup for Wordpress?

Here is the way to download your purchased JetBackup for WordPress zip file from the JetApps...

Issues logging into Backup-Guard after upgrading to Wordpress v6.2

We have received reports of issues logging into the Backup-Guard legacy plugin after updating...

Scheduled Backup is not executing

We've received reports that the Scheduled Backup was not being executed. In some cases, the...

Restored Backup, but the website didn't change

If you encountered issues after successfully restoring a backup on JetBackup for WordPress, but...

Stuck Restore

We've received reports that the restore process gets stuck and continues to loop indefinitely. A...