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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.