What is a right configuration for restore from azure storage account?
I tried…
apiVersion: psmdb.percona.com/v1
kind: PerconaServerMongoDBRestore
metadata:
name: restore-from-dev
namespace: namespace
spec:
clusterName: mongodb
backupName: 2024-02-06T08:41:21Z
backupSource:
type: physical
azure:
storageAccount: farmongodbbackups
container: farmongodbbackups
folder: test
~
Also tried
kind: PerconaServerMongoDBRestore
metadata:
name: restore-from-dev
namespace: ns
spec:
clusterName: mongodb
backupName: 2024-02-06T08:41:21Z
backupSource:
type: physical
destination:
azure:
storageAccount: farmongodbbackups
container: farmongodbbackups
folder: dev
But always received errors
Error from server (BadRequest): error when creating “restore.yaml”: PerconaServerMongoDBRestore in version “v1” cannot be handled as a PerconaServerMongoDBRestore: strict decoding error: unknown field “spec.backupSource.azure.folder”, unknown field “spec.backupSource.azure.storageAccount”
I need to restore ASAP the db…