• I’m currently in the process of migrating a WP Multisite with 200+ sites and each site runs the MyCalendar + PRO plugin. What would be the best method to migrate all of the events, categories, locations and plugin setting data over to the new install?

    I’ve tried using the WordPress Export/Import tool on each individual site, but it imports the events broken, missing their categories, and doesn’t include the plugin settings (In most cases, the events don’t import at all).

    Note: I can’t simply migrate the database as a whole, as the new structure is different.

    Any help is appreciated!

    • This topic was modified 3 years, 9 months ago by flipnotic.
    • This topic was modified 3 years, 9 months ago by flipnotic.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Well, your best bet is probably to use the importer in Pro to pull data from the old installation. You can set up a link to export events in the old installation: https://docs.joedolson.com/my-calendar/my-calendar-api/

    The CSV export will be a good way of handling imports.

    That won’t include plug-in settings; just the events, categories, and locations. And depending on server capabilities, you may need to run it in several batches, and each site individually.

    I don’t have an elegant way of migrating data on that scale unless you’re migrating the whole database, unfortunately.

    Thread Starter flipnotic

    (@flipnotic)

    @joedolson Much appreciated, I’ll check this out.

    Is there any way for me to set up some default settings/overrides via the API or my sites functions.php? It would save me from having to adjust the settings 200+ times!

    Plugin Author Joe Dolson

    (@joedolson)

    You can filter the default value of any option via the default_option_{name} or the option values via option_{name} filters in WordPress core; you can set up a function that filters the default values as you want them unless otherwise set. The efficiency of that probably depends on how many settings you want to configure – but if there are just a few settings you want to make sure of, that’s probably a good path.

    https://developer.ww.wp.xz.cn/reference/hooks/option_option/
    https://developer.ww.wp.xz.cn/reference/hooks/default_option_option

    You can get a complete list of options in uninstall.php, though it might require some additional exploration to verify the expected values for them all. my-calendar-install.php has a function mc_default_settings() that saves all the default values, and can be used for reference.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Multisite Migration’ is closed to new replies.