Skip to content

"no target backup found" while trying to recover from backup. #518

Answered by leonardoce
Magicloud asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

What was the name of the cluster you are trying to restore? If the name was mydb-jr you need to use the serverName option inside the external clusters section, and to remove that from the destinationPath, something like:

apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
  name: mydb-jr-db
spec:
  instances: 2
  storage:
    size: 4Gi

  superuserSecret:
    name: mydb-jr-db-su

  bootstrap:
    recovery:
      source: clusterBackup
      recoveryTarget:
        targetTime: "2022-08-03 15:22:05.00000+00"

  externalClusters:
    - name: clusterBackup
      barmanObjectStore:
        destinationPath: s3://cnpg-backup/
        serverName: mydb-jr
        wal:
          maxParalle…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@Magicloud
Comment options

Comment options

You must be logged in to vote
4 replies
@Magicloud
Comment options

@leonardoce
Comment options

@Magicloud
Comment options

@Magicloud
Comment options

Answer selected by Magicloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants