How to move an existing ghost install to another folder?

  • OS: Windows 10
  • Ghost-CLI version: 1.19.2
  • Ghost version: 4.41.2 (at C:\Program Files\HackingSoftware\ghost)
  • nodejs: v16.14.2

Is there a way to move an existing ghost installation to a different folder?

I want to move ghost to a folder where the user doesn’t require administrator privileges in order to run ghost. For example: C:\Users\ItsIgnacioPortal\AppData\Local\Ghost_Server

I’ve tried moving my ghost install, and after editing a couple of strings on my config.development.json, I was able to make the server start, but the images didn’t load in the editor view, and going to the main page showed a “500” error (an HTTP 500 error, i suppose).

I’ve thought about making a backup of my content, and then moving that to a new ghost install, but I couldn’t find any information about how to do this.

Any help would be much apreciated :sweat_smile:

Update: I ended up just creating a new ghost instance in the folder that I wanted, and then I migrated all of my posts and data.

  • ghost export ghost_backup.json on the old ghost instance
  • cd /path/to/new/ghost
  • ghost install local to create a new instance
  • Go to the admin panel, and create a user with exactly the same details as the old account
  • ghost import /path/to/old/instance/ghost_backup.json
  • ghost stop
  • ghost start
  • ghost import /path/to/old/instance/ghost_backup.json
  • ghost stop
  • ghost start
    Now you just have to copy the “contents” folder from your old Ghost, and paste it in your new Ghost. Replace all. And you’re done!