From f8ceadac4cab428d4c92179cbe6a1b024f90c4e9 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Tue, 9 Apr 2024 12:06:05 -0500 Subject: [PATCH] pgo client notes for manual restores and backups. --- .../crunchy-postgres-operator/README.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 kubernetes/apps/database/crunchy-postgres-operator/README.md diff --git a/kubernetes/apps/database/crunchy-postgres-operator/README.md b/kubernetes/apps/database/crunchy-postgres-operator/README.md new file mode 100644 index 0000000..0b71c3a --- /dev/null +++ b/kubernetes/apps/database/crunchy-postgres-operator/README.md @@ -0,0 +1,28 @@ +# Helpful PGO Commands + +Grab the cli from Github: +[GitHub](https://github.com/CrunchyData/postgres-operator-client) [Docs](https://access.crunchydata.com/documentation/postgres-operator-client/latest/) + +## Point In Time Restore + +`pgo show postgres -n database` for backup information + +### Whole cluster +```sh +pgo restore postgres -n database \ + --options "--type=time --target='2024-04-09 11:00:03+00'" \ + --repoName repo1 +``` + +### Individual databases +```sh +pgo restore postgres -n database \ + --options "--type=time --target='2024-04-09 11:00:03+00' --db-include=postgres" \ + --repoName repo1 +``` + +## Manual full backup + +```sh +pgo backup postgres -n database --repoName repo1 +```