This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

sokser+deatr10685
sokser+deatr10685

My dev site broken while installing composer incorrectly. Not a huge deal as it was a dev site. I would like to transfer the theme and all created pages, settings, plugins, etc to a new site. I've noticed that simply copying the files to the new site doesn't seem to work. While the theme appears it does not register any of the pages or plugins. I have tried overwriting the database.php file with the old sites config but this does not seem to help. Is there any tutorial on site migrations such as this?

Mohsin
Mohsin

I don’t think you would face issues with themes as those don’t use any db data but for plugins you will need to recreate the tables.

  1. Copy all the plugins from dev site to new site.

  2. Logout and login (this will re-create all the necessary tables). Alternatively, you can run php artisan october:up from the root folder of your project via terminal. This will create the plugin tables with default configuration i.e. when you installed the plugin freshly.

If you want the plugin configurations to remain the same as this old dev site than fresh then do step 1 and then instead of step 2, manually backup those plugin tables and import it into this new site.

Backup all tables other than these...

backend_access_log
backend_users
backend_users_groups
backend_user_groups
backend_user_preferences
backend_user_throttle
cache
cms_theme_data
deferred_bindings
failed_jobs
jobs
migrations
sessions
system_event_logs
system_files
system_mail_layouts
system_mail_templates
system_parameters
system_plugin_history
system_plugin_versions
system_request_logs
system_revisions
system_settings

These are the tables that October creates by default. All other tables are plugin-made so you just need to ignore the ones on the above list and export the rest. Import them back into the new site and you are good to go.

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.