Use the SaaS Infrastructure Mode

To create a new backup scope, follow the steps below:

  1. Go to the Backup page on the new UI.

Click on the Virtual Machine service tile or click the More actions button on the upper-right corner of the Virtual Machine service tile and click Configure backup scope from the drop-down list.

In the Configure backup scope for virtual machines page, all the existing backup scopes for Azure virtual machines, Amazon EC2 instances, and Google VM instances are listed in the table. You can use the search box to search for the backup scopes by name and manage the columns to adjust the view of the backup scopes.

> ***Note**: You can click the Refresh button in the upper-right corner of this page to retrieve the latest data list for Azure VMs, Amazon EC2 instances, and Google VM instances. The **Last refreshed time** is displayed next to the Refresh button. Additionally, the data list will be automatically refreshed daily at 00:00 local time.
  1. Click the Create button and select Google VM instance

  2. In the Select VM instances step, select the instances that you want to add to the backup scope. You can use Filters to find the instances you want to protect or use the Search box to search for the instances via the keywords in the name. The number of your selection will be displayed on the row of the tenant name.

  3. Click Next.

  4. In the Settings step, complete the following settings:

    The Settings step.

    • Scope information – Enter a name and description for the scope you are creating. The description is optional.

    • Storage profile – You can select a storage profile from the drop-down list to use or click the + Create a storage profile link next to the list to create a new storage profile for this backup scope. For details on configuring storage profiles, refer to Manage Your Storage.

    • Application consistency – Select the Enable application-consistent snapshots option if you want to achieve a consistent backup without requiring VM shutdown. For details on how to enable application-consistent snapshots, refer to Enable Application-consistent Snapshots for Windows VMs or Enable Application-consistent Snapshots for Linux VMs.

    • Schedule – Select days, weeks, months, or years as the unit of time for the backup interval, enter a number in the text box after Every, and then configure the start time for your first backup job.

    • Notification – Check the notification profiles which will be applied to the backup scope.

Retention policy – Configure when to prune the snapshots from Google Cloud Platform. You can choose the number of the latest snapshots to retain or choose for how long the snapshots will be retained after generation.

  1. Click Next to review your settings.

  2. Click Save to save this backup scope. The backup for the storages in this backup scope will roll out as scheduled. For more details about monitoring the backups, refer to Monitor Your Backup.

Enable Application-consistent Snapshots for Windows VMs

  1. Follow the steps below to enable application-consistent snapshots for Windows VMs:

Press Win + R to open the Run dialog.

Type services.msc and click OK.

In the Services window, locate "Volume Shadow Copy". Ensure the VSS service status is Running.

Enable Application-consistent Snapshots for Linux VMs

  1. Follow the steps below to enable application-consistent snapshots for Linux VMs:

  2. Click Download script package to download the provided scripts.

    The download script package button.

  3. Find the Linux instance you want to enable application-consistent snapshots for in your GCP environment.

  4. Open the downloaded package

  5. Use the pre script to create the pre-process script file with the name pre.sh in the /etc/google/snapshots/ directory.

    #!/bin/bash

    sudo fsfreeze -f [example-disk-location]

  6. Use the post script to create the post-process script file with the name post.sh in the /etc/google/snapshots/ directory.

    #!/bin/bash

    sudo fsfreeze -u [example-disk-location]

  7. Open or create your guest environment configuration file.

  8. edit /etc/default/instance_configs.cfg

  9. Add the following section to the configuration file:

  10. [Snapshots]

  11. enabled = true

  12. timeout_in_seconds = n

Note the following:
- enabled – The default value is **false**. To enable application-consistent snapshots, set the value to **true**. - timeout_in_seconds – The timeout setting determines how many seconds the pre- or post-snapshot script is allowed to run before timing out, with valid values ranging from 0 to 300. The default value is 68. Note that the entire snapshot operation has a fixed timeout limit of 300 seconds per disk, which cannot be adjusted.

13. Save your configuration settings.

  1. Execute the following command to restart the Guest Agent to save your configuration settings:

  2. sudo systemctl restart google-guest-agent.service