[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003eThis guide details the process of importing backup repositories for Database Services (DBS) in gdcloud CLI.\u003c/p\u003e\n"],["\u003cp\u003eImporting backup repositories is required for each Organization where you intend to restore DBClusters.\u003c/p\u003e\n"],["\u003cp\u003eTo begin, you must be a Platform Administrator (PA) with the DR Backup Admin cluster role.\u003c/p\u003e\n"],["\u003cp\u003eImportation involves creating a B4GDC Backup Repository resource on the Management API server, pointing to the source's DBS backup bucket.\u003c/p\u003e\n"],["\u003cp\u003eVerification of successful backup import is done by checking for a \u003ccode\u003eSucceeded\u003c/code\u003e state via \u003ccode\u003ekubectl get backups.gdc.goog -n dbs-dr\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Import backup repository for Database Services\n\nThis page describes how to import backup repositories for Database Services (DBS). You must do this for each Organization you want to restore DBClusters in.\n\nBefore you begin\n----------------\n\nBefore using backup and restore services for gdcloud CLI DBS, you must:\n\n- Be a Platform Administrator (PA).\n- Have the necessary identity and access role:\n\n - DR Backup Admin: performs disaster recovery backups. Ask your Organization IAM Admin to grant you the DR Backup Admin (`dr-backup-admin`) cluster role.\n\n To import backup repositories for DBS, follow the proceeding steps:\n\nImport backup repository DBS\n----------------------------\n\n1. On the Management API server of the target gdcloud CLI DBClusters, create a B4GDC Backup\n Repository resource which points to the same bucket used to store DBS\n backups in the sources gdcloud CLI instance:\n\n cat \u003c\u003c EOF \u003e backup_repo_plan.yaml\n apiVersion: backup.gdc.goog/v1\n kind: BackupRepository\n metadata:\n name: dbs-backup-repository\n spec:\n secretReference:\n namespace: dbs-dr\n name: secret\n endpoint: ENDPOINT\n type: S3\n s3Options:\n bucket: ORGNAME-dbs-bucket\n region: REGION\n forcePathStyle: true\n importPolicy: ReadWrite\n EOF\n kubectl apply -f backup_repo_plan.yaml\n\n2. Verify backups are successfully imported to the Management API server of the\n target gdcloud CLI instance:\n\n kubectl get backups.backup.gdc.goog -n dbs-dr\n\n Successful backups are imported and have a `Succeeded` state."]]