Backup of Cloud Machines
To back up data of Amazon EC2 instances or Microsoft Azure virtual machines (both objects can be also referred to as cloud machines), you can use Veeam Agent for Microsoft Windows or Veeam Agent for Linux together with Veeam Backup & Replication. Veeam Backup & Replication allows you to discover cloud machines and deploy Veeam Agents using cloud native API instead of the connection over network.
Veeam Backup & Replication supports backup of the following cloud machines:
- Amazon EC2 instances
- Microsoft Azure virtual machines
You can back up cloud machines running Microsoft Windows or Linux OSes that are supported by Veeam Agent and by cloud service provider.
- To learn lists of OSes supported by Veeam Agent, see system requirements for Veeam Agent for Microsoft Windows or for Veeam Agent for Linux depending on the type of Veeam Agent you plan to use.
- To learn lists of OSes supported by cloud service provider, see AWS documentation or Microsoft documentation depending on the type of cloud machines you plan to protect.
IMPORTANT |
In case of cloud machines running Microsoft Windows, Windows PowerShell 5.1 must be installed on the cloud machine. |
Getting Started
To back up cloud machine data, you must complete the following steps:
- Add a Microsoft Azure blob storage or Amazon S3 storage to your infrastructure depending on the type of cloud machines you plan to protect. To learn more, see the Adding Azure Blob Storage or Adding Amazon S3 Storage section in the Veeam Backup & Replication User Guide.
NOTE |
Regardless of the connection mode specified in the backup repository settings, Veeam Agent always performs backup of cloud machines directly to the cloud. Backup data is not sent to Veeam Backup & Replication. For information about the connection modes, see Backup to Object Storage. |
- Get the cloud user with the required permissions. With this user, Veeam Backup & Replication connects to the bucket or container on the cloud. To learn more, see Permissions.
- Configure a protection group for cloud machines. Keep in mind that the protection group of the cloud machines type is the only applicable protection group to back up data of cloud machines. To learn more, see Creating Protection Groups.
When you finish configuring a protection group and perform the rescan operation, Veeam Backup & Replication installs the Veeam components on the cloud machine. For more information, see Setup of Veeam Components.
- Configure a backup job. Depending on the OS running on your cloud machine, see one of the following sections:
Veeam Backup & Replication installs the following Veeam components on the cloud machine:
- Veeam Cloud Message Service
- Veeam Agent
- Veeam Transport Service
When you add a cloud machine to a protection group, it is managed by Amazon EC2 Simple Systems Manager (SSM) or Azure Run Command depending on the cloud that you use. Unlike working with physical machines, Veeam Backup & Replication does not send commands to cloud machines directly, but through these services. For more information about Amazon SSM and Azure Run Command, see AWS documentation and Microsoft documentation.
To accelerate the communication speed between Veeam Backup & Replication and a cloud machine, Veeam Backup & Replication installs the Veeam Cloud Message Service on the machine during the rescan operation. After the Veeam Cloud Message Service is installed, all communication between Veeam Backup & Replication and the machine is switched from Amazon SSM or Azure Run Command to the Veeam Cloud Message Service. The Veeam Cloud Message Service uses queue services to send commands to the machine: Amazon Simple Queue Service (SQS) or Azure Queue Storage. To learn more about these queue services, see AWS documentation and Microsoft documentation.
To install the Veeam components on the cloud machine, Veeam Backup & Replication uses a distribution repository. Veeam Backup & Replication uploads installation files to the distribution repository using signed URLs, and from there the files are downloaded to the cloud machine. The distribution repository is only used to interchange files between the Veeam Backup & Replication and the machine, not to store backups. For more information, see Distribution Repository.
IMPORTANT |
If you use the Amazon S3 repository in the China region as a distribution repository, make sure that you have the ICP license. This license is required to create signed URLs for Amazon S3 repositories in the China region. For more information, see AWS Documentation. |
Veeam Backup & Replication installs the Veeam components on the cloud machine in the following way:
- Veeam Backup & Replication starts the rescan operation and checks that Amazon SSM or Azure Run Command can receive and execute commands.
NOTE |
Keep in mind that Amazon SSM and Azure Run Command use scripts to execute commands. In some cases, script execution can be blocked — for example, by a PowerShell execution policy. If this happens, the Veeam components installation will fail. |
- Veeam Backup & Replication checks that the cloud machine is not managed by another Veeam backup server.
- Veeam Backup & Replication creates two queues. Veeam Backup & Replication listens to its queue where a managed Veeam Agent sends messages. Veeam Agent listens to its queue and Veeam Backup & Replication sends messages to it.
All managed by Veeam Backup & Replication Veeam Agents send messages to one Veeam Backup & Replication queue.
- Veeam Backup & Replication installs the Veeam Cloud Message Service on the cloud machine and starts it.
- Veeam Backup & Replication installs Veeam Agent and Veeam Transport Service on the cloud machine.
Communication Scheme
After the installation of Veeam components is completed, Veeam Backup & Replication communicates with the cloud machine and Veeam Agent in the following way:
- Veeam Cloud Message Service on Veeam backup server sends a message to the queue service on the cloud.
- Veeam Cloud Message Service on the cloud machine with Veeam Agent checks the queue, reads the message, and performs one of the following operations depending on the message content:
- Runs the command. For example, if your cloud machine runs the Microsoft Windows OS, Veeam Agent can run the Windows PowerShell command.
- Re-sends the command to another Veeam component. For example, Veeam Agent or Veeam Transport Service.
- Veeam Cloud Message Service sends the command result to the queue service.
- Veeam Backup & Replication reads the queue and receives the command result.