oc new-build https://github.com/jdauphant/postgresql-openshift-docker --context-dir=pg-dump-backup --name pg-dump-backup (you may need to setup limit and request ressources if your cluster enforce it)oc create -f job-run-once.yamloc create -f job-cron-run.yamloc run -i -t "pg-bash-$(date +%s)" --restart=Never --image=centos/postgresql-10-centos7 --limits='cpu=100m,memory=256Mi' --requests='cpu=100m,memory=256Mi' --command -- "/bin/bash"pg_restore --if-exist --clean -d postgres://user:pass@host:5432/db db-dumpgpg --gen-key
The container expects the public key to be base64 encoded and passed as the env var 'RECIPIENT_PUBLIC_KEY_B64'.
gpg --output backup --decrypt backup.gpg
Content type
Image
Digest
Size
201.2 MB
Last updated
about 6 years ago
docker pull betagouv/pg-dump-backup