Quando cloni il cluster di database, solo i dati dell'istanza principale del cluster di database di origine vengono clonati nell'istanza principale del cluster di database o del server di destinazione.
Un cluster di database di origine è un cluster di database AlloyDB Omni in cui esiste il backup. Questo backup viene clonato su altri
cluster di database in un ambiente server autonomo o in un ambiente Kubernetes.
Un cluster di database di destinazione è un cluster di database nell'ambiente Kubernetes in cui viene clonato il backup del cluster di database di origine. Un server di destinazione è un cluster di database nell'ambiente del server autonomo in cui viene clonato il backup del cluster di database di origine.
Per eseguire un backup del cluster di database AlloyDB Omni, configura la posizione del backup nel file manifest della risorsa BackupPlan. Quando vuoi clonare il backup, puoi farlo solo
in un cluster di database che si trova nello stesso cluster Kubernetes e utilizza lo stesso
spazio dei nomi del cluster di database di origine. Per saperne di più sulla creazione di un backup, consulta Backup e ripristino in Kubernetes.
Se vuoi clonare il backup in un altro cluster di database in un ambiente server autonomo o in un ambiente Kubernetes diverso, in particolare per il ripristino di emergenza, devi utilizzare le configurazioni e i comandi pgBackRest. Il metodo di backup e ripristino per entrambi gli ambienti utilizza pgBackRest
come soluzione di backup e ripristino sottostante.
I seguenti termini vengono utilizzati nelle sezioni successive che spiegano come clonare un cluster di database:
Cluster di database di origine
Un cluster di database AlloyDB Omni in cui esiste il backup. Questo backup viene clonato su altri
cluster di database in un ambiente server autonomo
o in un ambiente Kubernetes.
Cluster di database di destinazione
Un cluster di database nell'ambiente Kubernetes in cui viene clonato il backup del cluster di database di origine.
Server di destinazione
Un cluster di database nell'ambiente del server autonomo in cui viene clonato il backup del cluster di database di origine.
Combinazioni di backup e ripristino supportate
Poiché il backup del cluster di database AlloyDB Omni può essere archiviato localmente o in un bucket Cloud Storage, sono supportate le seguenti combinazioni di backup e ripristino:
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eThis guide details how to clone an AlloyDB Omni database cluster backup for disaster recovery, either to a standalone server or within 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\u003eCloning to a different Kubernetes cluster requires using \u003ccode\u003epgBackRest\u003c/code\u003e configurations, which is also required for standalone server cloning.\u003c/p\u003e\n"],["\u003cp\u003eThe source database cluster is where the backup resides, and it can be cloned to a target database cluster in Kubernetes or a target server in a standalone environment.\u003c/p\u003e\n"],["\u003cp\u003eSupported backup and restore combinations include using either Cloud Storage or local backups for cloning in both Kubernetes and single server environments.\u003c/p\u003e\n"]]],[],null,["# Overview of cloning a database cluster from a Kubernetes backup\n\nSelect a documentation version: Current (16.8.0)keyboard_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 either a standalone server environment or a Kubernetes environment.\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\nA *source database cluster* is an AlloyDB Omni\ndatabase cluster where the backup exists. This backup is cloned on other\ndatabase clusters in a standalone server environment or in a Kubernetes environment.\nA *target database cluster* is a database cluster in the Kubernetes\nenvironment where the backup of the source database cluster is cloned. A\n*target server* is a database cluster in the standalone server\nenvironment where the backup of the source database cluster is cloned.\n\nTo take a backup of your AlloyDB Omni database\ncluster, you configure the backup location in the\n[`BackupPlan`](/alloydb/omni/current/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 Kubernetes](/alloydb/omni/current/docs/backup-kubernetes).\n\nIf you want to clone the backup to another database cluster in either a\nstandalone server environment or a Kubernetes environment especially for\ndisaster 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\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/current/docs/kubernetes-dr-backup-k8-gcs)\n- [Clone a database cluster in Kubernetes using a local backup](/alloydb/omni/current/docs/kubernetes-dr-backup-k8-local)\n- [Clone a database cluster in a single server using a Cloud Storage backup](/alloydb/omni/current/docs/kubernetes-dr-backup-singleserver-gcs)\n- [Clone a database cluster in a single server using a local backup](/alloydb/omni/current/docs/kubernetes-dr-backup-singlerserver-local)"]]