percona-server-mysql-operator icon indicating copy to clipboard operation
percona-server-mysql-operator copied to clipboard

PITR in mysql backup is not working

Open kannanvr opened this issue 4 months ago • 4 comments

Report

Hi,

spec:
backup:
 enabled: true
 image: perconalab/percona-server-mysql-operator:main-backup8.4
 imagePullPolicy: IfNotPresent
 pitr:
   enabled: true
   binlogServer:
     connectTimeout: 20
     idleTime: 20
     image: percona/percona-server-mysql-operator:0.11.0
     readTimeout: 20
     serverId: 72
     size: 100
     writeTimeout: 20
     storage:
       s3:
         bucket: s3://mysql
         credentialsSecret: cluster1-s3-credentials
         region: us-west-2

Above is my backup section for the mysql. When i try taking the PITR option on mysql, then the binlog container came up but it is throwing the below log

Defaulted container "binlog-server" out of: binlog-server, binlog-server-init (init)
/opt/percona/binlog-server-entrypoint.sh: line 5: /usr/local/bin/binlog_server: No such file or directory

I dont see any percona image with binlog_server. Do you have any working image for PITR

More about the problem

I could not take the PITR from the operator

Steps to reproduce

  1. start the mysql operator
  2. enable PITR option on backup section
  3. binlog pod would come up

Versions

  1. Kubernetes: 1.30
  2. Operator: docker.io/perconalab/percona-server-mysql-operator:main
  3. Database: 8.4

Anything else?

No response

kannanvr avatar Aug 26 '25 01:08 kannanvr

Hi @kannanvr we do not support PITR backups in the PS operator. We have added it as an alpha version to test it internally.

hors avatar Aug 26 '25 07:08 hors

Ok.. Thanks @hors . Its one of the nice feature on percona mysql...

kannanvr avatar Aug 26 '25 07:08 kannanvr

Ok.. Thanks @hors . Its one of the nice feature on percona mysql...

I know, we will add it. It is under development right now.

hors avatar Aug 26 '25 08:08 hors

Ok . Sure.. Please let me know if you need any help to test for this feature..

kannanvr avatar Aug 26 '25 08:08 kannanvr

HI @hors , Do we have PITR functionalitry on MYSQL?

Thanks, Marthalla

sree1726 avatar Nov 25 '25 10:11 sree1726

Hey @sree1726, not yet, but we are planning to introduce it. Here's the ticket: https://perconadev.atlassian.net/browse/K8SPS-403

gkech avatar Nov 25 '25 11:11 gkech