Send feedback
Import backup repository for database services
Stay organized with collections
Save and categorize content based on your preferences.
You must be a Platform Administrator (PA) to perform the steps in this section to import backup repositories for database services. You must do this for each Organization you want to restore DBClusters in.
Import backup repository DBS
On the system cluster of the target gdcloud CLI instance, create a B4GDC Backup
Repository resource which points to the same bucket used to store DBS
backups in the sources gdcloud CLI instance:
cat << EOF > backup_repo_plan.yaml
apiVersion: backup.gdc.goog/v1
kind: BackupRepository
metadata:
name: dbs-backup-repository
spec:
secretReference:
namespace: dbs-dr
name: secret
endpoint: ENDPOINT
type: S3
s3Options:
bucket: ORGNAME-dbs-bucket
region: REGION
forcePathStyle: true
importPolicy: ReadWrite
EOF
kubectl apply -f backup_repo_plan.yaml
Verify backups are successfully imported to the Org admin cluster of the
target gdcloud CLI instance:
kubectl get backups.gdc.goog -n dbs-dr
Successful backups are imported and have a Succeeded
state.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?