How to do it...

In this recipe, we'll create a VM with a boot disk and an additional disk. We'll use a script to take a backup of the disks attached to the machine. Then, we'll simulate a total instance failure and try to manually bring back the instance from the backup snapshots:

  1. Let's create a Debian Linux instance with an additional disk and make sure that the Compute Engine API has read/write access. The additional disk is created first:
  1. The following screenshot shows the created instance:
  1. The following screenshot shows the attached ...

Get Google Cloud Platform Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.