Skip to content

Instantly share code, notes, and snippets.

@rm3l
Last active March 13, 2021 22:21
Show Gist options
  • Save rm3l/a06aa3939487f1321218c9d215343746 to your computer and use it in GitHub Desktop.
Save rm3l/a06aa3939487f1321218c9d215343746 to your computer and use it in GitHub Desktop.
Leveraging Kubernetes CronJobs for automated backups of a headless Ghost blog to AWS S3
helm repo add rm3l https://helm-charts.rm3l.org
helm install my-ghost-export-to-s3 rm3l/ghost-export-to-s3 \
--version 0.9.0 \
--set ghost.apiBaseUrl="https://my.ghost.blog/ghost" \
--set ghost.username="my-ghost-username" \
--set ghost.password="my-ghost-password" \
--set aws.accessKeyId="my-aws-access-key-id" \
--set aws.secretKey="my-aws-secret-key" \
--set aws.s3.destination="s3://path/to/my/s3-export.json" \
--set cronJob.schedule="@daily"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment