A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://cloud.google.com/compute/docs/disks/create-instant-snapshots below:

Create and manage instant snapshots | Compute Engine Documentation

This document explains how to create and manage instant snapshots. Instant snapshots capture the contents of a disk and can be used to create a new disk in minutes.

Instant snapshots are stored in the same zone or region as their source disks and are not a replacement for standard snapshots, which offer off-site backup for disaster recovery. Learn about the other data protection options available in Compute Engine.

To access the data on an instant snapshot, use the instant snapshot to create a new disk.

If you want to copy an instant snapshot to another location or retain the snapshotted data after the source disk is deleted, create a standard snapshot from the instant snapshot.

Before you begin Required roles and permissions

To get the permissions that you need to create instant snapshots, ask your administrator to grant you the following IAM roles on the project:

For more information about granting roles, see Manage access to projects, folders, and organizations.

These predefined roles contain the permissions required to create instant snapshots. To see the exact permissions that are required, expand the Required permissions section:

Required permissions

The following permissions are required to create instant snapshots:

You might also be able to get these permissions with custom roles or other predefined roles.

Limitations Create an instant snapshot of a disk

Instant snapshots of zonal disks are stored in the same zone as the source disk. Likewise, instant snapshots of regional disks are stored in the same region as the disk.

You can create an instant snapshot with the gcloud CLI, Google Cloud console, or REST.

Console
  1. In the Google Cloud console, go to the VM instances page.

    Go to VM instances

  2. Select the project you want to work with.

  3. In the Name column, click the name of the VM attached to the disk you want to back up.

  4. In the Storage section, select a disk in one of the following ways:

  5. To finish creating an instant snapshot, on the Create a snapshot page, do the following:

    1. In the Name field, enter a unique name to identify the instant snapshot.
    2. Optional: Add more details about the snapshot in the Description field.
    3. In the Type field, select Instant snapshot. The Location field is automatically set to the same zone or region as the disk.
    4. In the Snapshot source type field, verify that Disk is selected.
    5. Optional: To organize your project, add one or more labels.
    6. Click Create.
gcloud

To create an instant snapshot, use the gcloud compute instant-snapshots create command:

Zonal disk

To create an instant snapshot of a zonal disk:

 gcloud compute instant-snapshots create INSTANT_SNAPSHOT_NAME \
   --source-disk=SOURCE_DISK_NAME \
   --zone=SOURCE_DISK_ZONE
 

Replace the following:

Regional disk

To create an instant snapshot of a regional disk:

 gcloud compute instant-snapshots create INSTANT_SNAPSHOT_NAME \
   --source-disk=SOURCE_DISK_NAME \
   --region=SOURCE_DISK_REGION
 

Replace the following:

REST

To create an instant snapshot, make a POST request to the instantSnapshots.insert method.

Request response

If the POST request is successful, the response body will be an object that you can poll to get the status of the instant snapshot's creation. See Handling API responses for more information.

Restore an instant snapshot to a new disk

To restore data backed up with an instant snapshot, create a new disk from the instant snapshot.

View the instant snapshots in a project or location

You can view the list of all instant snapshots in a project or location by using the gcloud CLI, Google Cloud console, or REST.

Console
  1. In the Google Cloud console, go to the Snapshots page.

    Go to the Snapshots page

  2. Click the Instant snapshots tab. The list of instant snapshots appears.

  3. Optional: Narrow your results with the filter_list Filter field. Enter a property name or value in the filter_list Filter field, or choose from the available properties.

gcloud

You can list the instant snapshots in a specific project or location with the gcloud compute instant-snapshots list command.

List all the snapshots in a project or the snapshots in a zone or region:

REST

You can retrieve a list of the instant snapshots in a specific project or location.

View the instant snapshots for a disk

You can view the list of instant snapshots for a disk by using the gcloud CLI, Google Cloud console, or REST.

Console
  1. In the Google Cloud console, go to the Snapshots page.

    Go to the Snapshots page

  2. Click the Instant snapshots tab. The list of all the instant snapshots in the project appears.

  3. Narrow the results by source disk:

    1. Enter Source disk: in the filter_list Filter field.

      A list of disks with instant snapshots appears.

    2. Select the name of the disk from the Values list. The list of instant snapshots shows all instant snapshots for the disk.

      If you don't see the name of a disk in the filter_list Filter field, type in the first few letters of the disk's name to change the list of filtered options that you see.

gcloud
  1. List the instant snapshots for a disk with the gcloud compute instant-snapshots list command and the --filter argument:

REST

List the instant snapshots for a zonal or regional disk with a GET request to the instantSnapshots.list method.

Use the filter=sourceDisk query parameter to specify the name of the disk.

View information about an instant snapshot

Retrieve detailed information about an instant snapshot, such as its location, source disk, and size by using the gcloud CLI, Google Cloud console, or REST.

Console
  1. In the Google Cloud console, go to the Snapshots page.

    Go to the Snapshots page

  2. Click the Instant snapshots tab. The list of instant snapshots appears.

  3. In the Name column, click the name of the instant snapshot. The Instant snapshot details page for the selected snapshot appears, showing its properties.

gcloud
  1. To view information about an instant snapshot, use the gcloud compute instant-snapshots describe command.

REST

The API method request you use depends on whether you're working with a regional or zonal instant snapshot.

Zonal instant snapshot

Make a GET request to the instantSnapshots.get method by specifying the zone in the request:

GET https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/instantSnapshots/INSTANT_SNAPSHOT_NAME

Replace the following with the corresponding values:

Regional instant snapshot

Make a GET request to the instantSnapshots.get method by specifying the region in the request:

GET https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/instantSnapshots/INSTANT_SNAPSHOT_NAME

Replace the following with the corresponding values:

Delete an instant snapshot

You can delete an instant snapshot by using the gcloud CLI, Google Cloud console, or REST.

Warning: Deleting an instant snapshot is irreversible. You can't recover a deleted instant snapshot. Console
  1. In the Google Cloud console, go to the Snapshots page.

    Go to the Snapshots page

  2. Click the Instant snapshots tab.

  3. Select one more snapshots to delete.

  4. At the top of the Snapshots page, click Delete.

gcloud

Delete an instant snapshot with the gcloud compute instant-snapshots delete command, specifying either the source zone or the source region.

REST

Delete an instant snapshot with a DELETE request to the instantSnapshots.delete method:

Change the storage location of an instant snapshot

An instant snapshot is always stored in the same location as the source disk. You can't make an instant snapshot accessible from a different zone or region. Instead, you can create a standard snapshot from the instant snapshot and use the standard snapshot.

Learn how to create a standard snapshot from an instant snapshot.

Troubleshooting

See Troubleshooting instant snapshots to resolve problems you encounter working with instant snapshots.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4