Ghost icon indicating copy to clipboard operation
Ghost copied to clipboard

Single Export JSON File does not support custom images

Open vednig opened this issue 1 year ago • 7 comments

Issue Summary

When transferring data from one instance of ghost installation to another, with Single export JSON file images are not rendered when importing on new instance is complete

Steps to Reproduce

1.Upload Custom Images to Post in Ghost Installation 2. Export JSON data 3. In new installation import JSON and view broken image.

Ghost Version

5

Node.js Version

How did you install Ghost?

docker armv7 ubuntu

Database type

MySQL 8

Browser & OS version

any

Relevant log / error output

No response

Code of Conduct

  • [X] I agree to be friendly and polite to people in this repository

vednig avatar Jun 28 '24 16:06 vednig

That is indeed expected behaviour in how the export is currently implemented in Ghost. Images always need to be exported separately: https://ghost.org/docs/migration/ghost/#images

If you want to migrate from Ghost to Ghost this tool might help: https://github.com/TryGhost/migrate

betschki avatar Jun 30 '24 16:06 betschki

I believe a possible feature could be to implement conversion of image to base64 format and embed in JSON value. This would simply streamline the process of migration. Making sure no additional steps are required.

vednig avatar Jun 30 '24 17:06 vednig

Because the idea of single glorious JSON fails when images crash. Also several services like Ghost (Pro) and digitalpress.blog do not provide ssh access in their services.

vednig avatar Jun 30 '24 17:06 vednig

The idea of a managed hosting solution is that things are well…managed. SSH access always means that this "management" can be interfered with, potentially creating huge issues for the management processes of the hoster. If you need access to the images, every Ghost hoster I know, will send you a zipped backup upon request.

Independent of that, I also believe that a full export function in Ghost would be great, though I am personally not sold on putting the images into the JSON itself. The .zip structure created by the migrate project makes a lot more sense, in my eyes.

betschki avatar Jun 30 '24 17:06 betschki

If not to export post data, what is the purpose of export function in Ghost Admin ?

vednig avatar Jun 30 '24 17:06 vednig

Sorry if I wasn't clear: I believe that the export function should include the images, though I would prefer a .zip file with all images as files in a dedicated folder, rather than a huge JSON.

betschki avatar Jun 30 '24 17:06 betschki

Yeah, that makes sense. I still can't figure it out , product design wise, what function does two different methods of exporting data in different formats serve ? I mean, if there is complete tool for migration why not converge both in Ghost Admin Panel?

vednig avatar Jun 30 '24 17:06 vednig

Hey @vednig 👋

Friendly reminder: we don't track feature requests on GitHub.

Please look for similar ideas to vote for on the forum and if you can't anything similar then post your own idea.

FYI: Many projects use issue templates to point you in the right direction. Reading the guidelines or issue templates before opening issues can save you and project maintainers valuable time.

github-actions[bot] avatar Jul 04 '24 22:07 github-actions[bot]