Closed Eric-zch closed 1 year ago
Hi Eric-zch,
Hi have tried to reproduce your problem. My current version is:
$> kubectl-pgo version
Client Version: v0.3.0
Operator Version: v5.3.0
To be in the same conditions, I created a crunchy cluster, made 3 backups:
stanza: db
status: ok
cipher: none
db (current)
wal archive min/max (14): 000000010000000000000001/000000010000000000000006
full backup: 20230423-185330F
timestamp start/stop: 2023-04-23 18:53:30 / 2023-04-23 18:53:39
wal start/stop: 000000010000000000000002 / 000000010000000000000002
database size: 33.5MB, database backup size: 33.5MB
repo1: backup set size: 4.2MB, backup size: 4.2MB
full backup: 20230423-185348F
timestamp start/stop: 2023-04-23 18:53:48 / 2023-04-23 18:53:57
wal start/stop: 000000010000000000000004 / 000000010000000000000004
database size: 33.6MB, database backup size: 33.6MB
repo1: backup set size: 4.2MB, backup size: 4.2MB
full backup: 20230423-185450F
timestamp start/stop: 2023-04-23 18:54:50 / 2023-04-23 18:54:55
wal start/stop: 000000010000000000000006 / 000000010000000000000006
database size: 33.7MB, database backup size: 33.7MB
repo1: backup set size: 4.2MB, backup size: 4.2MB
Then restore the cluster with the kubectl pgo :+1:
$> kubectl-pgo restore source-cluster -n test-clone --repoName repo1 --options '--type=time --target="2023-04-23 18:53:57"'
when the restoration completed, I executed the command:
$> kubectl-pgo restore disable source-cluster -n test-clone
postgresclusters/source-cluster patched
May be you should upgrade to the latest version.
Hi @boris-lenzinger May I know where I can get client version v0.3.0? From https://github.com/CrunchyData/postgres-operator-client/releases, the latest version is v0.2.0
Hi @Eric-zch ,
I have rebuilt the repository. I didn't notice that the published version was 0.2 !
The version is in the file pgo.go in package cmd. You can check that it is now 0.3. Rebuilt is quite easy. Download Go, add the bin folder to the path and execute make build
. This will produce the binary in the bin folder.
Hi @boris-lenzinger Thank you.
@Eric-zch Thanks for the kind words about the postgres-operator-client and @boris-lenzinger thanks for working through the issue!
This seems complete, so I'll close this issue, but feel free to reopen if there's something I missed.
Thanks for developing such a user friendly tool postgres-operator-client, I love it. So I followed this page https://access.crunchydata.com/documentation/postgres-operator-client/0.2.0/reference/ to test some functions I often use. I can do backup and restore with it successfuly.
after I restored successfully with oc pgo restore command, I want to disable the restore, so I issued command:
My postgrescluster pnst has below configuration after the restore.
Could you please let me know why I got this error message?