This repository provides easy way to Deploy an Automated CronJob to backup PostgreSQL Backup to any S3 Compatible Storage such as Amazon S3, E2E Object Store, DigitalOcean Spaces, etc
- Configurable Timings
- AutoBackup to S3 using Streaming Upload (No Volume Mount Required)
- Minimum Memory Footprint
To use the automated deployment:
- Configure your namespace (if you don't want to use the default one) in
config.sh
and deploy.yaml - Configure Backup Timing Cron in deploy.yaml (Default is 12 AM Daily)
- Configure your S3 Access Key, Access Secret and Bucket Name in
secrets.env
- Configure your Postgres Credentials, Database Name and Port in
secrets.env
- Run
deploy.sh
to automatcially Create Namespace, Deploy Secrets, and Create a CronJob - All Done! Enjoy the Backups!
To deploy it manually, follow the steps 2,3 and 4 of Automated Deployment and then follow:
- Create a namespace for deployment
- Create the secrets in namespace using
kubectl create secret generic app-secrets --from-env-file=secrets.env -n NAMESPACE
- Create the CronJob in namespace using
kubectl apply -f deploy.yaml -n NAMESPACE
- All Done! Enjoy the Backups!
This repository is maintained by Letstream Ventures Private Limited