# JSON Export using ghost CLI

**URL:** <https://forum.ghost.org/t/json-export-using-ghost-cli/12224>\
**Category:** Developer help\
**Created:** [February 23, 2020, 11:16pm UTC](https://forum.ghost.org/t/json-export-using-ghost-cli/12224 "2020-02-23T23:16:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ieosjoinus](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ieosjoinus/32/5255_2.png) [@ieosjoinus](https://forum.ghost.org/u/ieosjoinus)\
**Post date:** [February 23, 2020, 11:16pm UTC](https://forum.ghost.org/t/json-export-using-ghost-cli/12224/1 "2020-02-23T23:16:40Z")

</div>

It seems my Ghost installation is hacked as there are multiple .php files and website is getting 503 error. I am able to download content folder using FTP with Cyberduck but am unable to access the Labs JSON export webpage. Is it possible for me to use ghost CLI for export? I apologize if this has been shared before, but I could not find it anywhere.  
To avoid further damage, my plan is to restart the droplet on the digitalocean and reinstall ghost. I can access the database from [serverpilot.io](http://serverpilot.io) if that helps.

If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you. Try to always mention:

- What’s your URL? [https://ieos.org](https://ieos.org)
- What version of Ghost are you using? v2.31.1
- What configuration?
- What browser? Chrome

---

<div class="post-metadata">

**Author:** ![ieosjoinus](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ieosjoinus/32/5255_2.png) [@ieosjoinus](https://forum.ghost.org/u/ieosjoinus)\
**Post date:** [February 25, 2020, 3:46am UTC](https://forum.ghost.org/t/json-export-using-ghost-cli/12224/2 "2020-02-25T03:46:42Z")

</div>

The malware besides creating PHP scripts slowing the PHP also deleted the configuration file. By recreating the configuration file, I was able to restore the connection with the database. Backed up JSON, content and recreating DigitalOcean droplet. 😰

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [February 25, 2020, 12:46pm UTC](https://forum.ghost.org/t/json-export-using-ghost-cli/12224/3 "2020-02-25T12:46:00Z")

</div>

Well done for getting a backup. Are you starting over with a fresh install?

---

<div class="post-metadata">

**Author:** ![ieosjoinus](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ieosjoinus/32/5255_2.png) [@ieosjoinus](https://forum.ghost.org/u/ieosjoinus)\
**Post date:** [March 1, 2020, 1:35am UTC](https://forum.ghost.org/t/json-export-using-ghost-cli/12224/4 "2020-03-01T01:35:02Z")

</div>

Yes, deleted the droplet even, reinstalled centOS, serverpilot and fresh ghost install 3.0 with import.
