Saat Anda meng-clone cluster database, hanya data dari instance utama cluster database sumber yang di-clone ke instance utama cluster database atau server target.
Cluster database sumber adalah cluster database AlloyDB Omni tempat cadangan berada. Cadangan ini dikloning di cluster database lain dalam lingkungan server mandiri atau di lingkungan Kubernetes.
Cluster database target adalah cluster database di lingkungan
Kubernetes tempat cadangan cluster database sumber di-clone. Server target adalah cluster database di lingkungan server mandiri tempat cadangan cluster database sumber di-clone.
Untuk mencadangkan cluster database AlloyDB Omni, Anda mengonfigurasi lokasi cadangan di file manifes resource BackupPlan. Saat ingin meng-clone cadangan, Anda hanya dapat meng-clone-nya
ke cluster database yang berada di cluster Kubernetes yang sama dan menggunakan
namespace yang sama dengan cluster database sumber. Untuk mengetahui informasi selengkapnya tentang cara membuat
cadangan, lihat Mencadangkan dan memulihkan di Kubernetes.
Jika Anda ingin meng-clone cadangan ke cluster database lain di lingkungan server mandiri atau di lingkungan Kubernetes yang berbeda, terutama untuk pemulihan dari bencana, Anda harus menggunakan konfigurasi dan perintah pgBackRest. Metode pencadangan dan pemulihan untuk kedua lingkungan menggunakan pgBackRest
sebagai solusi pencadangan dan pemulihan yang mendasarinya.
Istilah berikut digunakan di seluruh bagian berikutnya yang menjelaskan cara meng-clone cluster database:
Cluster database sumber
Cluster database AlloyDB Omni tempat cadangan berada. Pencadangan ini dikloning di cluster database lain dalam lingkungan server mandiri atau lingkungan Kubernetes.
Cluster database target
Cluster database di lingkungan Kubernetes tempat cadangan cluster database sumber di-clone.
Server target
Cluster database di lingkungan server mandiri tempat cadangan cluster database sumber di-clone.
Kombinasi pencadangan dan pemulihan yang didukung
Karena pencadangan cluster database AlloyDB Omni Anda dapat disimpan secara lokal atau di bucket Cloud Storage, kombinasi pencadangan dan pemulihan berikut didukung:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[[["\u003cp\u003eThis page explains how to clone an AlloyDB Omni database cluster backup in either a standalone server or Kubernetes environment.\u003c/p\u003e\n"],["\u003cp\u003eCloning only transfers data from the primary instance of the source cluster to the primary instance of the target cluster or server.\u003c/p\u003e\n"],["\u003cp\u003eBackups within Kubernetes can only be cloned to a cluster in the same namespace; otherwise, \u003ccode\u003epgBackRest\u003c/code\u003e configurations must be used.\u003c/p\u003e\n"],["\u003cp\u003eThe page covers cloning using both Cloud Storage and local backups in Kubernetes or standalone server environments.\u003c/p\u003e\n"],["\u003cp\u003eThe source database cluster is where the backup exists and the target is where it will be cloned to.\u003c/p\u003e\n"]]],[],null,["# Overview of cloning a database cluster from a Kubernetes backup\n\nSelect a documentation version: 16.3.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 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/16.3.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 Kubernetes](/alloydb/omni/16.3.0/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/16.3.0/docs/kubernetes-dr-backup-k8-gcs)\n- [Clone a database cluster in Kubernetes using a local backup](/alloydb/omni/16.3.0/docs/kubernetes-dr-backup-k8-local)\n- [Clone a database cluster in a single server using a Cloud Storage backup](/alloydb/omni/16.3.0/docs/kubernetes-dr-backup-singleserver-gcs)\n- [Clone a database cluster in a single server using a local backup](/alloydb/omni/16.3.0/docs/kubernetes-dr-backup-singlerserver-local)"]]