Skip to content

Commit

Permalink
Apply suggestions from review
Browse files Browse the repository at this point in the history
Co-authored-by: Chris <github.account@chrigel.net>
Signed-off-by: Gabriel Mainberger <gabriel.mainberger@vshn.net>
  • Loading branch information
2 people authored and Gabriel Mainberger committed Nov 23, 2021
1 parent 71eeb5f commit d324dd9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ But it should work with any command that has the ability to output the backup to

== PostgreSQL

PostgreSQL ship with the utility `pg_dump`.
Note that the PostgreSQL image used requires the utility `pg_dump`.
It is able to dump the database content into an SQL stream in a consistent state.
The parameter `-- clean` ensures all tables including data are purged before, so a restore to an already populated DB does work.

Expand All @@ -45,5 +45,10 @@ template:
annotations:
k8up.io/backupcommand: sh -c 'PGDATABASE="$POSTGRES_DB" PGUSER="$POSTGRES_USER" PGPASSWORD="$POSTGRES_PASSWORD" pg_dump --clean'
k8up.io/file-extension: .sql
spec:
containers:
- name: postgres
image: docker.io/bitnami/postgresql:11
...
<SNIP>
----

0 comments on commit d324dd9

Please sign in to comment.