Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Automated backups for Ghost #31

Open
imilchev opened this issue Nov 29, 2022 · 0 comments
Open

[Feature] Automated backups for Ghost #31

imilchev opened this issue Nov 29, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@imilchev
Copy link
Contributor

We need to implement automated backups for our blog. Currently, we do that manually and the process is quite clear. We need to investigate how to automate this.

The blog is deployed via the Ghost bitnami helm chart. The deployment configuration can be found here. It can be deployed to a local cluster (minikube, k3d etc.)

Note that you might need to change the PVC configuration to be able to deploy locally. The configuration in this repo is set up for using a Ceph-provisioned volume.

What needs to be backed up?
We need to backup the content directory for the blog that contains the images for our blog posts. The directory that needs to be backed up from the Ghost container is /bitnami/ghost/content.

We also need to backup the blog's content and users. That can be done from the admin panel. We should be able to get the files via the API as well. The backup process is described here.

Ghost has a CLI that can perform complete backups too. The CLI can be invoked by calling ghost backup. I was not able to make this command run from the bitnami container as it resulted in an error. Read more here.

What do we need?
Ideally we can setup the backup as a k8s CronJob that runs daily. We already have a bucket that can store the backup. If anyone can provide a script or a small application that can output a tar containing all the backup files. I can extend that with uploading the artifact to the bucket.

@imilchev imilchev added the enhancement New feature or request label Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant