This project will schedule a container to run on OpenShift to backup and save a (relatively small) postgres DB to a target location.
- Add configuration info needed (between angle brackets) in cronjob_template.yaml
- Template assumes a secret file that already contains postgres credentials. If one doesn't exist, just add them to the secret_template.yaml
- Adjust the timing of the backups if desired. Defaults to every day at 2am.
- Add configuration info needed in secret_template.yaml
- Add the secret to Openshift
oc create -f secret_template.yaml
- Add the cronjob to Openshift
oc create -f cronjob_template.yaml
oc delete cronjob/postgres-bkup