Download website - Server Migration

Hello All, i would like to know if its possible to download my current ghost websites. My plan is to migrate to another server, install Ghost again and upload my website. Is this at all possible and where can i find this option when i am managing my ghost site.
Details.
I have installed ghost using docker compose on a self hosted vps.

Do i need to provide any further informaton?
thank you!

This post is more focused on a dev site, but perhaps you’ll find it helpful:

For a production site, make sure you move /everything/ in the content folder (don’t use my script). You’ll also want to downloads the members from the members page (under the gear icon) - be careful that the CSV has the expected total number of members.

Other tips:
Import theme first, then your exported-site.json, so that theme custom settings get set up correctly.

It occurs to me that I’m not sure if this approach works for a site with comments. Can someone anyone confirm, please?

thank you. ok looking at your article, its not so straight forward. i will download json file but i think i will just migrate before building the sites out. thanks again!

In Docker Compose, did you store media/assets in container or on the local file system?

If you have it in a docker container your images and theme files and some other stuff needs to exported from the container with

docker export <container_id_or_name> > <output_filename>.tar

…else, just zip up the /content directory and move everything to new host.
You will have to reload any themes from admin iirc.

As Cathy mentioned, export content (posts) and members separately from admin. Don’t know about comments, would expect them to be included if you use Ghost native comments.

Quick tip here: the CSV/JSON downloads leave out quite a bit of information. Had a very disappointed customer myself the other day, when they figured that out and already deleted the old database :confused:

For an identical copy of the Ghost site a dump/import of the MySQL database will work better, but, admittedly, is also a bit more work.

These two commands can help with that in a docker compose setup: Backup and restore a mysql database from a running Docker mysql container · GitHub

Happy to help with figuring out the exact commands, if you need assistance (your Docker Compose file would be great, in that case – make sure to remove any passwords/secrets though).

2 Likes

Jannis, if you can share what’s missing, that’d be great to know!

From the glimpse I had, it was mainly details on members (geolocation field saved in the database, source and page where they signed up from), as well as newsletter analytics.

2 Likes