How to migrate to another server

Hello,

I intend to keep the same domain with the same content, but i’m trying to move the site to another server. Is there any way to do this without losing data?

I’m checking the official docs, but only show the Ghost to Ghost(Pro) migration.

Thanks in advance,

It depends on how you are running Ghost. Docker, OS install or whatever.
But the general steps are the same:

Create a MySQL dump from the database.

Then you have to copy everything in the content folder (that is where ghost stores images and various other things) and the database dump to the new server.

Import the database dump into your new database, move the content folder to the right location.

Switch DNS to the new server and you are good to go.

If you are running docker you can take some inspiration from my set-up which I recently blogged about:

Self Hosting a Ghost blog with docker-compose, Mailgun setup, and Stripe subscriptions

You will see that I only need to move the ghost content folder from the Ghost container and the database data.
That’s everything regarding Ghost.

Ok, so I have Ghost installed directly over Ubuntu.

I have Content (posts), plus memberships, plus newsletter configuration.

I have installed the new ghost in another server using a new subdomain in case i could test everything before. Ghost have a created mysql user.

I suppose that copying the content folder plus import the mysql should be enough? (I would like a bit of err… “directions”)

Here are the docs you’re looking for:

1 Like

This was definitely what i was looking for. Thanks!