[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[[["\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."]]