Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
In diesem Dokument wird beschrieben, wie Sie einen Backup-Plan für den Backup- und DR-Dienst auf Ihre Compute Engine-Instanz anwenden, wenn Sie die Instanz über dieGoogle Cloud Console erstellen.
Mit Sicherungsplänen des Backup- und DR-Dienstes können Sie regelbasierte und unverwischbare Sicherungen Ihrer Compute Engine-Instanzen erstellen und diese Sicherungen dann an sicheren und isolierten Speicherorten speichern.
Mit Backup- und DR-Sicherungsplänen können Sie erweiterte Sicherungsstrategien definieren, um Ihre Compute Engine-Instanzen an sicheren Speicherorten, sogenannten Backup Vaults, zu speichern. Mit dem auf Ihre Instanz angewendeten Sicherungsplan können Sie geplante oder On-Demand-Sicherungen Ihrer Instanz in einem Backup Vault erstellen.
Hinweise
Aktivieren Sie die Backup and DR Service API dort, wo sich die Compute Engine-Instanzen befinden.
Richten Sie Log Analytics für Ihren Bucket ein, um Backup- und DR-Sicherungsjobs zu überwachen.
Erforderliche Rollen
Bitten Sie Ihren Administrator, Ihnen die folgenden IAM-Rollen zuzuweisen, um die Berechtigungen zu erhalten, die Sie zum Erstellen einer Instanz und zum Anwenden eines Sicherungsplans während der Erstellung benötigen:
So erstellen Sie die Instanz:
Compute Instance Admin (v1) (roles/compute.instanceAdmin.v1)
für das Projekt für die Compute Engine-Instanz
So konfigurieren Sie geplante Sicherungen oder führen On‑Demand-Sicherungen aus:
Wenn Sie eine Compute Engine-Instanz in einem Backup Vault sichern möchten, der sich in einem anderen Projekt als die Instanz befindet, muss dem
Backup and DR Vault Service Agent für den Backup Vault die Berechtigung zum Zugriff auf die Instanzen in diesem Projekt erteilt worden sein. Wenn sich das Backup Vault und die Instanz im selben Projekt befinden, wird diese Berechtigung bereits standardmäßig gewährt.
Bitten Sie Ihren Administrator, dem Backup and DR Vault Service Agent die IAM-Rolle Backup and DR Compute Engine Operator (roles/backupdr.computeEngineOperator) für das Projekt für die Compute Engine-Instanz zuzuweisen, damit der Backup and DR Vault Service Agent die erforderlichen Berechtigungen zum Sichern einer Compute Engine-Instanz in einem Backup Vault hat.
Instanz mit angewendetem Sicherungsplan erstellen
So erstellen Sie eine Instanz, auf die ein Sicherungsplan angewendet wird:Google Cloud
Rufen Sie in der Google Cloud Console die Seite Instanz erstellen auf.
Wenn Sie dazu aufgefordert werden, wählen Sie Ihr Projekt aus und klicken auf Weiter.
Die Seite Instanz erstellen wird angezeigt und enthält den Bereich Maschinenkonfiguration.
Geben Sie im Feld Name einen Namen für die Instanz an. Weitere Informationen finden Sie unter Namenskonvention für Ressourcen.
Geben Sie im Feld Region die Region an, in der sich Ihre Instanz befinden soll.
Optional: Wählen Sie im Feld Zone eine Zone für diese Instanz aus.
Die Standardauswahl ist Beliebig. Wenn Sie diese Standardauswahl nicht ändern, wählt Google automatisch eine Zone für Sie aus, die auf dem Maschinentyp und der Verfügbarkeit basiert.
So geben Sie einen Sicherungsplan für diese Instanz an:
Klicken Sie im Navigationsmenü auf Betriebssystem und Speicher. Der Bereich Betriebssystem und Speicher wird angezeigt.
Klicken Sie im Abschnitt Sicherungsplan auf Plan auswählen.
Führen Sie im angezeigten Bereich Sicherungsplan auswählen die folgenden Schritte aus:
Prüfen Sie, ob das Feld Project denselben Projektnamen enthält, unter dem Ihre Sicherungspläne vorhanden sind. Ist dies nicht der Fall, wählen Sie das richtige Projekt aus.
Klicken Sie in der Spalte Name des Sicherungsplans auf den Namen des Sicherungsplans, den Sie verwenden möchten.
Klicken Sie auf Übernehmen, um Ihre Auswahl des Sicherungsplans zu bestätigen und zum Bereich Betriebssystem und Speicher zurückzukehren.
Optional. Geben Sie weitere Konfigurationsparameter Ihrer Wahl an. Weitere Informationen zu benutzerdefinierten Konfigurationsoptionen finden Sie unter Instanz erstellen und starten.
Klicken Sie zum Erstellen und Starten der VM auf Erstellen.
[[["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 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,["# Apply a backup plan during instance creation\n\n*** ** * ** ***\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\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\n### Required 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-------------------------------------------------\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\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))."]]