Cut down code quotes that were too long and disformed the blog template
This commit is contained in:
parent
a807111238
commit
f5eb463f91
6 changed files with 22 additions and 12 deletions
|
@ -10,8 +10,11 @@ tags:
|
|||
Assuming we are working with a postgresql statefulset, our namespace is named `miniflux` and our master pod is named `db-postgresql-0`, trying to
|
||||
dump a database named `miniflux`:
|
||||
{{< highlight sh >}}
|
||||
export POSTGRES_PASSWORD=$(kubectl get secret --namespace miniflux db-postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode)
|
||||
kubectl run db-postgresql-client --rm --tty -i --restart='Never' --namespace miniflux --image docker.io/bitnami/postgresql:11.8.0-debian-10-r19 --env="PGPASSWORD=$POSTGRES_PASSWORD" --command -- pg_dump --host db-postgresql -U postgres -d miniflux > miniflux.sql-2020062501
|
||||
export POSTGRES_PASSWORD=$(kubectl get secret --namespace miniflux db-postgresql \
|
||||
-o jsonpath="{.data.postgresql-password}" | base64 --decode)
|
||||
kubectl run db-postgresql-client --rm --tty -i --restart='Never' --namespace miniflux \
|
||||
--image docker.io/bitnami/postgresql:11.8.0-debian-10-r19 --env="PGPASSWORD=$POSTGRES_PASSWORD" \
|
||||
--command -- pg_dump --host db-postgresql -U postgres -d miniflux > miniflux.sql-2020062501
|
||||
{{< /highlight >}}
|
||||
|
||||
## Restoring
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue