Wenn Sie Ihren Datenbankcluster klonen, werden nur die Daten aus der primären Instanz des Quelldatenbankclusters in die primäre Instanz des Zieldatenbankclusters oder -servers geklont.
Ein Quelldatenbankcluster ist ein AlloyDB Omni-Datenbankcluster, in dem die Sicherung vorhanden ist. Dieses Backup wird auf andere Datenbankcluster in einer eigenständigen Serverumgebung oder in einer Kubernetes-Umgebung geklont.
Ein Zieldatenbankcluster ist ein Datenbankcluster in der Kubernetes-Umgebung, in dem die Sicherung des Quelldatenbankclusters geklont wird. Ein Zielserver ist ein Datenbankcluster in der Umgebung des eigenständigen Servers, in dem das Backup des Quelldatenbankclusters geklont wird.
Wenn Sie eine Sicherung Ihres AlloyDB Omni-Datenbankclusters erstellen möchten, konfigurieren Sie den Sicherungsspeicherort in der Ressourcenmanifestdatei BackupPlan. Wenn Sie den Backup klonen möchten, können Sie ihn nur in einen Datenbankcluster klonen, der sich im selben Kubernetes-Cluster befindet und denselben Namespace wie der Quelldatenbankcluster verwendet. Weitere Informationen zum Erstellen einer Sicherung finden Sie unter Sichern und Wiederherstellen in Kubernetes.
Wenn Sie den Backup in einer Standalone-Serverumgebung oder in einer anderen Kubernetes-Umgebung, insbesondere für die Notfallwiederherstellung, in einen anderen Datenbankcluster klonen möchten, müssen Sie die pgBackRest-Konfigurationen und -Befehle verwenden. Bei der Sicherungs- und Wiederherstellungsmethode für beide Umgebungen wird pgBackRest als zugrunde liegende Sicherungs- und Wiederherstellungslösung verwendet.
In den folgenden Abschnitten, in denen das Klonen eines Datenbankclusters beschrieben wird, werden die folgenden Begriffe verwendet:
Quelldatenbankcluster
Ein AlloyDB Omni-Datenbankcluster, in dem die Sicherung vorhanden ist. Dieser Backup wird auf andere Datenbankcluster in einer Standalone-Serverumgebung oder einer Kubernetes-Umgebung geklont.
Zieldatenbank-Cluster
Ein Datenbankcluster in der Kubernetes-Umgebung, in dem die Sicherung des Quelldatenbankclusters geklont wird.
Zielserver
Ein Datenbankcluster in der Umgebung des eigenständigen Servers, in dem die Sicherung des Quelldatenbankclusters geklont wird.
Unterstützte Kombinationen für Sicherung und Wiederherstellung
Da die Sicherung Ihres AlloyDB Omni-Datenbankclusters entweder lokal oder in einem Cloud Storage-Bucket gespeichert werden kann, werden die folgenden Sicherungs- und Wiederherstellungskombinationen unterstützt:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[[["\u003cp\u003eThis guide details the process of cloning an AlloyDB Omni database cluster backup for disaster recovery, either to a standalone server or a Kubernetes environment.\u003c/p\u003e\n"],["\u003cp\u003eCloning a database cluster only copies data from the primary instance of the source to the primary instance of the target.\u003c/p\u003e\n"],["\u003cp\u003eFor cloning to a different Kubernetes cluster or a standalone server environment, \u003ccode\u003epgBackRest\u003c/code\u003e configurations and commands must be utilized.\u003c/p\u003e\n"],["\u003cp\u003eThe process supports cloning from backups stored locally or in Cloud Storage, with specific instructions provided for each method in both Kubernetes and single server environments.\u003c/p\u003e\n"],["\u003cp\u003eThe source database is where the backup exists, and the target database cluster or target server is where the backup is being cloned.\u003c/p\u003e\n"]]],[],null,["# Clone a database cluster from a Kubernetes backup overview\n\nSelect a documentation version: 15.7.0keyboard_arrow_down\n\n- [Current (16.8.0)](/alloydb/omni/current/docs/kubernetes-dr-backup-overview)\n- [16.8.0](/alloydb/omni/16.8.0/docs/kubernetes-dr-backup-overview)\n- [16.3.0](/alloydb/omni/16.3.0/docs/kubernetes-dr-backup-overview)\n- [15.12.0](/alloydb/omni/15.12.0/docs/kubernetes-dr-backup-overview)\n- [15.7.1](/alloydb/omni/15.7.1/docs/kubernetes-dr-backup-overview)\n- [15.7.0](/alloydb/omni/15.7.0/docs/kubernetes-dr-backup-overview)\n- [15.5.5](/alloydb/omni/15.5.5/docs/kubernetes-dr-backup-overview)\n- [15.5.4](/alloydb/omni/15.5.4/docs/kubernetes-dr-backup-overview)\n- [15.5.2](/alloydb/omni/15.5.2/docs/kubernetes-dr-backup-overview)\n\n\u003cbr /\u003e\n\nThis page provides an overview of cloning the backup of your AlloyDB Omni database cluster in a standalone server environment or in a Kubernetes environment for the purposes of disaster recovery.\n\n\u003cbr /\u003e\n\nWhen you clone your database cluster, only the data from the primary instance of\nthe source database cluster is cloned to the primary instance of the target\ndatabase cluster or server.\n\nTo take a backup of your AlloyDB Omni database\ncluster, you configure the backup location in the\n[`BackupPlan`](/alloydb/omni/15.7.0/docs/backup-kubernetes)\nresource manifest file. When you want to clone the backup, you can only clone it\nto a database cluster that is in the same Kubernetes cluster and uses the same\nnamespace as the source database cluster. For more information about creating a\nbackup, see [Back up and restore in\nKubernetes](/alloydb/omni/15.7.0/docs/backup-kubernetes).\n\nIf you want to clone the backup to another database cluster in a\nstandalone server environment or in a different Kubernetes environment especially for disaster recovery, then you must use the `pgBackRest` configurations and\ncommands. The backup and restore method for both environments uses `pgBackRest`\nas the underlying backup and restore solution.\n\nThe following terms are used throughout the subsequent sections that explain how\nto clone a database cluster:\n\nSource database cluster\n: An AlloyDB Omni\n database cluster where the backup exists. This backup is cloned on other\n database clusters in a standalone server environment\n or a Kubernetes environment.\n\nTarget database cluster\n: A database cluster in the Kubernetes\n environment where the backup of the source database cluster is cloned.\n\nTarget server\n: A database cluster in the standalone server\n environment where the backup of the source database cluster is cloned.\n\nSupported backup and restore combinations\n-----------------------------------------\n\nBecause the backup of your AlloyDB Omni database cluster can be\nstored either locally or in a Cloud Storage bucket, the following backup and\nrestore combinations are supported:\n\n- [Clone a database cluster in Kubernetes using a Cloud Storage backup](/alloydb/omni/15.7.0/docs/kubernetes-dr-backup-k8-gcs)\n- [Clone a database cluster in Kubernetes using a local backup](/alloydb/omni/15.7.0/docs/kubernetes-dr-backup-k8-local)\n- [Clone a database cluster in a single server using a Cloud Storage backup](/alloydb/omni/15.7.0/docs/kubernetes-dr-backup-singleserver-gcs)\n- [Clone a database cluster in a single server using a local backup](/alloydb/omni/15.7.0/docs/kubernetes-dr-backup-singleserver-local)"]]