Support » Plugin: BackUpWordPress » Scheduled backups being unreliable

  • Resolved c_dilla

    (@c_dilla)


    Is this plugin based on the WordPress cron system with wp_cron or the wp_schedule_event? It’s a bit problematic since it’s a faux cron job with the effect that it’s not running as you might have scheduled it to unless you’re logged in to the admin area frequently.

    Just a heads up if someone is having trouble with the timing of the scheduled backups being unreliable.

    “When it comes to WordPress, you can schedule an event to happen at a certain interval, but it doesn’t operate like a classical cron job.

    Instead, the event is set and scheduled and written to the database. The next time a user hits the site, the WordPress cron system will look to see if an event is scheduled and, if so, will then fire the event.

    Notice the problem?

    Someone has to visit the site before the event actually kicks off. So if you’ve scheduled something to happen hourly, but no one has visited your site in the last hour, then the event will never kick off.

    If you have a very active site, then this isn’t a problem, but if you’re, say, building a plugin that needs to execute some code every hour, day, week, month, or whatever then using the default WordPress cron job system is simply not a good idea.”

    http://tommcfarlin.com/wordpress-cron-jobs/

    http://wordpress.org/plugins/backupwordpress/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Paul de Wouters

    (@pauldewouters)

    Hello

    yes, BackUpWordPress relies on the wp-cron scheduling system. You are correct in that backups won’t run exactly at the scheduled time, and on very low traffic sites, this will be more apparent.
    However, there is no other possibility for a plugin to run jobs on a schedule.

Viewing 1 replies (of 1 total)
  • The topic ‘Scheduled backups being unreliable’ is closed to new replies.