• Resolved Spikee

    (@spikee)


    I have multiple php cron schedules at our site. Would be possible to have backup, import/export function?
    Thank you.
    PS: Also angry because you did not informed in admin area about “Needs checking” after plugin update. All 45 crons just stopped working!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    You can export cron events via the “Export” button on the Tools -> Cron Events screen.

    Cron events will be backed up and restored with your main site backups, because they’re just stored in the cron option in the wp_options database table. What’s your use case for exporting and importing cron events separately to your regular backups?

    Do you really have 45 PHP cron events on your site? Or 45 in total? If you have 45 PHP cron events then I strongly encourage you to move that PHP code into a more maintainable system, for example a custom plugin or mu-plugin.

    Thread Starter Spikee

    (@spikee)

    Thank you for your answer.
    I am using multiple PHP code cron events to post process files from an ERP system for import. Also php cron events to call third party plugins to import and export data (trigger and processing)
    Some of them can be moved to a server, but some need a wordpress environment for full functionality.
    I checked Export button, but export contains no PHP code, only this:

    crontrol_cron_job,"PHP Code",2024-04-24T05:45:00+02:00,2024-04-24T03:45:00+00:00,"WP Crontrol","Once Daily",86400

    After backing up and restoring the site, cron events like “Standard cron event” (hooks) are back, but all PHP cron’s are gone. I don’t have experience if it is safe to backup php code along with cron events, but maybe it could be a nice feature for many users.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Request Feature: Import export function’ is closed to new replies.