Skip to content

Commit 4c375bc

Browse files
committed
Add examples for PXC operator restore
1 parent aaccad2 commit 4c375bc

3 files changed

+44
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: pxc.percona.com/v1
2+
kind: PerconaXtraDBClusterRestore
3+
metadata:
4+
name: restore-bkp-aws
5+
spec:
6+
pxcCluster: cluster2
7+
backupSource:
8+
destination: s3://tomislav-backup-test/cluster1-2021-01-28-17:33:59-full/
9+
s3:
10+
credentialsSecret: my-cluster-name-backup-s3
11+
endpointUrl: https://s3.us-west-2.amazonaws.com
12+
region: us-west-2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: pxc.percona.com/v1
2+
kind: PerconaXtraDBClusterRestore
3+
metadata:
4+
name: restore-pitr-aws-latest
5+
spec:
6+
pxcCluster: cluster2
7+
backupSource:
8+
destination: s3://tomislav-backup-test/cluster1-2021-01-28-17:33:59-full
9+
s3:
10+
bucket: tomislav-backup-test
11+
credentialsSecret: my-cluster-name-backup-s3
12+
endpointUrl: https://s3.us-west-2.amazonaws.com
13+
region: us-west-2
14+
pitr:
15+
type: latest
16+
backupSource:
17+
s3:
18+
bucket: tomislav-backup-test/binlogs
19+
credentialsSecret: my-cluster-name-backup-s3
20+
endpointUrl: https://s3.us-west-2.amazonaws.com
21+
region: us-west-2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: pxc.percona.com/v1
2+
kind: PerconaXtraDBClusterRestore
3+
metadata:
4+
name: restore-pitr-aws-latest
5+
spec:
6+
pxcCluster: cluster1
7+
backupName: backup1
8+
pitr:
9+
type: latest
10+
backupSource:
11+
storageName: "s3-us-west-binlogs"

0 commit comments

Comments
 (0)