I already have Drupal 9 site, and now have new installation of Drupal 10 - Installed by composer with nginx on debian - on a different machine.

The new one are empty without any content/modules..

I have backup of  MySQL database of the old site:

How can I import the old database to the new site? Can import content and modules and all views etc?

Please advise what can import in order to save time while launching the new site.  

Comments

gisle’s picture

Creating an empty new Drupal 8/9/10 website, and then importing the content of the Drupal 7 website into this empty website was the standard (only?) way to upgrade a Drupal 7 website to something newer. Anyone who've been through this knows that it was it was pretty hard work, and that it could take weeks to get the necessary migration scaffolding in place.

Thankfully, things has improved a lot since then! To upgrade from Drupal 9 to Drupal 10, I recommend reading two documentation pages linked below. They describe the canonical approach for upgrading a website from Drupal 9 to Drupal 10:

I've successfully upgraded all my Drupal 9 websites using this method. A typical upgrade for a single website only takes a few hours (if all the required modules already are Drupal 10 compliant). I recommend looking into it, as an alternative to importing the content.

- gisle

drump’s picture

Nice to know!

Actually at the moment, my site is quite small and do not have a lot of content. I plan to add much more to the upgraded site. However, it is better to save some time and let composer composing the music.. I am going to give a chance to your advise..

I had not updated the site long time and hope it will work out. First it is a good idea to backup by creating an image of the old site, then updating and go a head according your advise.

Thanks!

amavi’s picture

Migrate D8 to D9 was make manually, Tutorial was write for this specialy, but not for 9 to 10, tuto advice MIGRATE with composer. :) 

Easy.

 

slikey’s picture

For Drupal 7 to upgrade to 8/9/10, do we still have to take the old fashioned way (creating an empty new website)?

amavi’s picture

You have tutorial to migrate D7 to D8 but difficult and manually...