I can not find how to restore a new cluster from a S3 backup on a new k8s cluster. How can I restore if somehow a “perconaxtradbclusterbackups.pxc.percona.com” resource object is lost?
I want to create a new pxc cluster and point it to a S3 backup to restore from. Is that possible?
After some more research I found a “restore-backup.sh” script in the repository. (https://github.com/percona/percona-xtradb-cluster-operator/blob/master/deploy/backup/restore-backup.sh) . However, this script seem to be outdated. The restore fails when trying to restore a pxc cluster using a s3 url. The script is using a old version of the backup image: percona/percona-xtradb-cluster-operator:0.3.0-backup. The current is percona/percona-xtradb-cluster-operator:1.5.0-pxc8.0-backup.
mc -C /tmp/mc cat dest/$backup_bucket/$backup_key. “$backup_bucket/$backup_key” does not exist in the backups that current version of the operator creates.
Are there any plans to update this script to be compatible with the current version of the operator?
Hi @Ivan_Pylypenko- followed those two links in solution and it restored and 3 pods of pxc are up but it was missing my databases that i have in backup. could you please help me here? thank you so much in advance.
Hi @Ivan_Pylypenko -below is my back.yaml file and i checked the logs for the backup job and it is taking the latest backup from s3 and creating a backup in cluster.
`apiVersion: pxc.percona.com/v1
kind: PerconaXtraDBClusterBackup
metadata:
and upon apply this backup is creating with latest “backup5 pxc-db s3-us-east s3://percona-backups-release-ops/backups/pxc-db-2022-03-29-15:49:28-full Starting 3s”.
so, how can i point it to a specific date since it is creating the backup with latest ? please suggest me here. Thank you. backuppodlogs.txt (73.0 KB)
I’ve same result, from new pxc cluster, when I create pxc-backup object with backup path specified in status and object in state “Succeeded” instead of a backup object with
state “Succeeded” a new backup job is created.