Menerapkan rencana cadangan selama pembuatan instance
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Dokumen ini menjelaskan cara menerapkan rencana pencadangan Layanan Backup dan DR ke instance Compute Engine saat Anda membuat instance menggunakan konsolGoogle Cloud .
Gunakan rencana pencadangan Backup and DR Service untuk membuat cadangan berbasis aturan dan tidak dapat dihapus
instance Compute Engine Anda, lalu simpan cadangan tersebut di lokasi penyimpanan yang aman dan terisolasi.
Paket pencadangan Backup and DR memungkinkan Anda menentukan strategi pencadangan lanjutan
untuk menyimpan instance Compute Engine Anda di lokasi penyimpanan yang aman
yang disebut vault cadangan. Dengan menggunakan rencana cadangan yang diterapkan ke instance, Anda dapat membuat cadangan terjadwal atau sesuai permintaan untuk instance di brankas cadangan.
Sebelum memulai
Aktifkan Backup and DR Service API tempat instance Compute Engine berada.
Siapkan Log Analytics di bucket Anda untuk memantau tugas pencadangan Backup and DR.
Peran yang diperlukan
Untuk mendapatkan izin yang
diperlukan untuk membuat instance dan menerapkan rencana pencadangan selama
pembuatannya,
minta administrator Anda untuk memberi Anda
peran IAM berikut:
Untuk membuat instance:
Compute Instance Admin (v1) (roles/compute.instanceAdmin.v1)
di project untuk instance Compute Engine
Untuk mengonfigurasi pencadangan terjadwal atau menjalankan pencadangan on-demand:
Anda mungkin juga bisa mendapatkan
izin yang diperlukan melalui peran
khusus atau peran
bawaan lainnya.
Jika Anda ingin mencadangkan instance Compute Engine ke
vault cadangan yang berada dalam project yang berbeda dengan instance, maka
pastikan
Agen Layanan Vault Cadangan dan DR untuk vault cadangan telah
diberi izin untuk mengakses instance dalam project tersebut. (Jika
vault cadangan dan instance berada dalam project yang sama, izin ini
sudah diberikan secara default.)
Untuk memastikan bahwa Agen Layanan Vault Backup dan DR memiliki izin yang diperlukan untuk mencadangkan instance Compute Engine ke vault cadangan, minta administrator Anda untuk memberikan peran IAM Backup and DR Compute Engine Operator (roles/backupdr.computeEngineOperator) kepada Agen Layanan Vault Backup dan DR di project untuk instance Compute Engine.
Membuat instance yang menerapkan rencana cadangan
Untuk membuat instance yang menerapkan rencana pencadangan, ikuti langkah-langkah berikut di konsolGoogle Cloud :
Di konsol Google Cloud , buka halaman Create an instance.
Jika diminta, pilih project Anda, lalu klik Lanjutkan.
Halaman Create an instance akan muncul dan menampilkan panel
Machine configuration.
Di kolom Name, tentukan nama untuk instance Anda. Untuk mengetahui informasi selengkapnya, lihat Konvensi penamaan resource.
Di kolom Region, tentukan region tempat Anda ingin instance berada.
Opsional: Di kolom Zone, pilih zona untuk instance ini.
Pilihan defaultnya adalah Semua. Jika Anda tidak mengubah pilihan default ini, Google akan otomatis memilih zona untuk Anda berdasarkan jenis dan ketersediaan mesin.
Untuk menentukan rencana cadangan bagi instance ini, lakukan hal berikut:
Di menu navigasi, klik OS dan penyimpanan. Panel
Sistem operasi dan penyimpanan akan muncul.
Di bagian Paket cadangan, klik Pilih paket.
Di panel Pilih rencana cadangan yang muncul, lakukan tindakan berikut:
Pastikan kolom Project memiliki nama project yang sama dengan tempat rencana pencadangan Anda berada. Jika tidak, pilih project yang benar.
Di kolom Nama rencana pencadangan, klik nama rencana pencadangan
yang ingin Anda gunakan.
Untuk mengonfirmasi pilihan paket pencadangan dan kembali ke
panel Sistem operasi dan penyimpanan, klik Terapkan.
Opsional. Tentukan parameter konfigurasi lain sesuai pilihan Anda. Untuk
mengetahui informasi selengkapnya tentang opsi konfigurasi kustom, lihat
Membuat dan memulai instance.
[[["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-08-19 UTC."],[[["\u003cp\u003eThis guide outlines the process of applying a Backup and DR Service backup plan to a new Compute Engine instance during its creation using the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eBackup and DR backup plans define rules for backing up Compute Engine instances, including frequency, retention, and replication, storing them in secure backup vaults.\u003c/p\u003e\n"],["\u003cp\u003eTo apply a backup plan during instance creation, you must have the required IAM roles and have previously created a backup vault and a backup plan in the same region.\u003c/p\u003e\n"],["\u003cp\u003eCertain Compute Engine instance configurations are not supported for Backup and DR Service backups, including those with extreme or Hyperdisk volumes, specific machine types, CMEK/CSEK encryption, no attached disks, or those larger than 200 TB.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Cloud console is required to apply a backup plan when creating an instance, with the option located in the "OS and storage" or "Data protection" section of the instance creation process.\u003c/p\u003e\n"]]],[],null,["*** ** * ** ***\n\nThis document explains how to apply a Backup and DR Service backup plan to your\nCompute Engine instance when you create the instance using the\nGoogle Cloud console.\n\nUse Backup and DR Service backup plans to create rule-based and indelible backups\nof your Compute Engine instances and then store those backups in a\nsecure and isolated storage locations.\n\nBackup and DR backup plans let you define advanced backup strategies\nto store your Compute Engine instances in secure storage locations\ncalled backup vaults. Using the backup plan applied to your instance,\nyou can create scheduled or on-demand backups of your instance in a\nbackup vault.\n\nBefore you begin\n\n- Enable the Backup and DR Service API where the Compute Engine instances are located.\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=backupdr.googleapis.com&_ga=2.145630134.30427899.1640890668-1982243420.1634228058)\n\n- [Create a backup vault](/backup-disaster-recovery/docs/cloud-console/backup-vault-create)\n- [Create a backup plan](/backup-disaster-recovery/docs/cloud-console/backup-plan-create)\n- Set up Log Analytics on your bucket to monitor Backup and DR backup jobs.\n\nRequired roles\n\n-\n\n To get the permissions that\n you need to create an instance and apply a backup plan during its\n creation,\n\n ask your administrator to grant you the\n following IAM roles:\n\n - To create the instance: [Compute Instance Admin (v1)](/iam/docs/roles-permissions/compute#compute.instanceAdmin.v1) (`roles/compute.instanceAdmin.v1`) on the project for the Compute Engine instance\n - To configure scheduled backups or run on-demand backups:\n - [Backup and DR Backup User](/iam/docs/roles-permissions/backupdr#backupdr.backupUser) (`roles/backupdr.backupUser`) on the project for the backup vault\n - [Viewer](/iam/docs/roles-overview#basic) (`roles/viewer`) on the project for the backup vault\n\n\n For more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\n You might also be able to get\n the required permissions through [custom\n roles](/iam/docs/creating-custom-roles) or other [predefined\n roles](/iam/docs/roles-overview#predefined).\n- If you want to back up a Compute Engine instance to a\n backup vault that is in a different project than the instance, then\n make sure the\n [Backup and DR Vault Service Agent](/iam/docs/service-agents#backup-and-dr-vault-service-agent) for the backup vault has been\n granted permission to access the instances in that project. (If the\n backup vault and instance are in the same project, then this\n permission is already granted by default.)\n\n-\n\n To ensure that Backup and DR Vault Service Agent has the necessary\n permissions to back up a Compute Engine instance to a\n backup vault,\n\n ask your administrator to grant Backup and DR Vault Service Agent the\n\n\n [Backup and DR Compute Engine Operator](/iam/docs/roles-permissions/backupdr#backupdr.computeEngineOperator) (`roles/backupdr.computeEngineOperator`)\n IAM role on the project for the Compute Engine instance.\n\n\n | **Important:** You must grant this role to Backup and DR Vault Service Agent, *not* to your user account. Failure to grant the role to the correct principal might result in permission errors.\n\n \u003cbr /\u003e\n\nCreate an instance that has a backup plan applied\n\nTo create an instance that has a backup plan applied, follow these steps in the\nGoogle Cloud console:\n\n1. In the Google Cloud console, go to the **Create an instance** page.\n\n [Go to Create an instance](https://console.cloud.google.com/compute/instancesAdd)\n\n If prompted, select your project and click **Continue**.\n\n The **Create an instance** page appears and displays the\n **Machine configuration** pane.\n2. In the **Name** field, specify a name for your instance. For more\n information, see\n [Resource naming convention](/compute/docs/naming-resources#resource-name-format).\n\n3. In the **Region** field, specify the region where you want your instance.\n\n4. Optional: In the **Zone** field, select a zone for this instance.\n\n The default selection is **Any**. If you don't change this default\n selection, then Google automatically chooses a zone for you based on\n machine type and availability.\n5. To specify a backup plan for this instance, do the following:\n\n 1. In the navigation menu, click **OS and storage** . The\n **Operating system and storage** pane appears.\n\n | **Important:** If you see a **Data protection** pane in the navigation menu, click **Data protection** instead of **OS and storage** and then continue with the remaining steps. For more information, see the [February 14, 2025 release note](/compute/docs/release-notes#February_14_2025).\n 2. In the **Backup plan** section, click **Select a plan**.\n\n 3. In the **Select a backup plan** pane that appears, do the following:\n\n 1. Verify that the **Project** field has the same project name where your backup plans exist. If not, select the correct project.\n 2. In the **Backup plan name** column, click the name of the back plan that you want to use.\n 3. To confirm your choice of backup plan and return to the **Operating system and storage** pane, click **Apply**.\n6. Optional. Specify any other configuration parameters of your choice. For\n more information about custom configuration options, see\n [Create and start an instance](/compute/docs/instances/create-start-instance).\n\n7. To create and start the VM, click **Create**.\n\nWhat's next\n\n- Learn how to use your instance's backup plan to [schedule or create backups in a backup vault](/backup-disaster-recovery/docs/cloud-console/compute/compute-instance-backup).\n- Learn how to [restore an instance from a backup vault](/backup-disaster-recovery/docs/cloud-console/compute/compute-instance-restore).\n- Learn how to [change the backup plan that's applied to an instance](/compute/docs/instances/change-backup-plan-for-instance) ([Preview](/products#product-launch-stages))."]]