Compatible with Ghost ^1.18.2
This function is designed to run as an AWS Lambda. Trigger periodically to backup ghost blog site to s3. Calls the ghost site private api remotely to get a data snapshot and then writes that JSON response to a file in the specified s3 location.
| Name | Description |
|---|---|
| GHOST_URL | Ghost blog Url to be backed up. Eg. https://blog.dionhut.net |
| CLIENT_ID | Client Id. See here how to manually obtain client_id and client_secret. |
| SECRET | Client Secret |
| USERNAME | Ghost admin username |
| PASSWORD | Ghost admin password |
| S3_BUCKET | S3 bucket where backup file will be written |
| S3_KEY | S3 path where backup file will be written |
| AWS_ACCESS_KEY_ID | (Only required if running outside AWS data center) |
| AWS_SECRET_ACCESS_KEY | (Only required if running outside AWS data center) |