So, I came across the knowledge that we can backup our blog via the JSON import/export functionality introduced in Ghost v2, I’m looking to automate this process and I know afew repos exist currently but they do not incubate my custom locally hosted instance of Ghost.
@naz mentions here there is a endpoint in the admin API known as “db” so I went ahead and generated a JWT to give it a shot, knowing this is zero documentation on this for it’s experimental “phase”.
Whenever I call the POST request i’m welcome with:
{
"errors": [
{
"message": "The server does not support the functionality required to fulfill the request.",
"context": null,
"type": "NotImplementedError",
"details": null,
"property": null,
"help": null,
"code": null,
"id": "6e86f100-fdc6-11e9-8540-bb7912061736"
}
]
Just checking, you’re not sending the Auth header, correct? As far as I know, the export db option in the Admin interface hits that endpoint. You might compare the request you’re making with what the admin request makes and see what differs.