Stay organized with collections
Save and categorize content based on your preferences.
This page describes how to import backup repositories for Database Services (DBS). You must do this for each Organization you want to restore DBClusters in.
Before you begin
Before using backup and restore services for gdcloud CLI DBS, you must:
Be a Platform Administrator (PA).
Have the necessary identity and access role:
DR Backup Admin: performs disaster recovery backups. Ask your Organization IAM Admin to grant you the DR Backup Admin (dr-backup-admin) cluster role.
To import backup repositories for DBS, follow the proceeding steps:
Import backup repository DBS
On the Management API server of the target gdcloud CLI DBClusters, create a B4GDC Backup
Repository resource which points to the same bucket used to store DBS
backups in the sources gdcloud CLI instance:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 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."]]