View a markdown version of this page

How on-premises and self-managed resource backup works - AWS Backup

How on-premises and self-managed resource backup works

Backing up on-premises and self-managed resources follows one end-to-end flow, from deploying the backup appliance through restoring your data. You drive every step through standard AWS Backup.

End-to-end flow

  1. Deploy and activate the backup appliance. Deploy the backup appliance in your environment, on-premises on VMware or in the AWS Cloud on Amazon EC2, and activate it so that it connects to AWS Backup. The appliance runs as a cluster of nodes for availability. Then create a local vault for the appliance. See Local vault.

  2. Register your resources. Register each resource provider (such as a vCenter Server, NAS file share, or database host) with the appliance. For resource types that require one, install the agent on the host first.

  3. Discover resource targets. After you register a resource provider, AWS Backup automatically discovers the resource targets beneath it and makes them available as standard AWS Backup resources. AWS Backup refreshes discovered resources on a regular schedule, and you can start a sync on demand.

  4. Back up to the local vault. Assign your resources to a backup plan, or start an on-demand backup. Backup plans target a backup vault, and AWS Backup sends scheduled backups of on-premises resources to the local vault of the resource's appliance. An on-demand backup also goes to that local vault. The console shows the vault, and you can't choose a different one. The appliance performs the backup and stores the recovery point in the local vault.

  5. Copy to the cloud. By default, a backup plan stores each recovery point in the local vault and copies it to the rule's target vault (a cloud vault). To keep backups only in the local vault, change the rule's local backup settings.

  6. Restore. Restore a resource from a recovery point in the local vault. To restore from a copy in a cloud vault, first copy it back to the local vault. You start and monitor restores with the standard AWS Backup restore workflow.

Local backup settings in a backup plan

By default, a backup rule that protects on-premises or self-managed resources stores each recovery point in the local vault of the resource's appliance and also copies it to the rule's target vault. You control this with the rule's local backup settings (LocalBackupConfiguration in the API):

  • DeleteAfterDays (required) — the number of days to keep recovery points in the local vault.

  • BackupToLocalVaultOnly — set to true to keep recovery points only in the local vault. The default is false, which also copies each recovery point to the rule's target vault.

  • DeleteAfterNextBackup — set to true to delete the previous local recovery point when the next scheduled backup completes. If the rule copies the recovery point to its target vault, AWS Backup waits for that copy to complete first. On-demand backups don't trigger this delete.

If you omit the local backup settings, AWS Backup uses these defaults: it copies each recovery point to the rule's target vault, deletes the previous local recovery point when the next scheduled backup completes, and keeps local recovery points for no longer than the retention in the rule's Lifecycle setting. Cold storage settings don't apply to the local vault.

When a rule enables continuous backups, DeleteAfterDays applies to both local snapshots and local log backups. DeleteAfterNextBackup does not apply to local log backups.

Note

For pricing, see Pricing. If the target vault is a logically air-gapped vault or a vault locked in compliance mode, you can't delete those copies before their retention period ends.

You drive everything through AWS Backup

You initiate, schedule, and monitor all backup, copy, and restore work through the standard AWS Backup console, CLI, SDKs, and monitoring tools. The backup appliance runs behind this control plane and carries out the work asynchronously.

AWS never connects into your environment, and you don't open inbound ports from the internet. For the connections inside your network, see Network requirements and ports.

Backup, copy, and restore jobs for on-premises and self-managed resources follow the same job model and states that AWS Backup uses for AWS resources, so you can track them with the tools you already use.

Job types

AWS Backup uses the following types of jobs to protect on-premises and self-managed resources. You start, schedule, and monitor each one through standard AWS Backup, the same way you do for your AWS resources.

  • Backup jobs create a recovery point from one of your resources and store it in a local vault. A backup job runs when a backup plan's schedule starts or when you start an on-demand backup.

  • Log backup jobs capture transaction logs for self-managed SQL Server and Oracle databases when the backup plan has a continuous backup rule. A log backup job starts with each backup plan run and stays in the RUNNING state while log backups are turned on. For more information, see Continuous backup support for on-premises and self-managed resource types.

  • Copy jobs copy a recovery point from a local vault to a cloud vault. Copying is the only way to move backups of on-premises and self-managed resources into the cloud for longer retention or disaster recovery.

  • Restore jobs recover a resource from a recovery point in a local vault. To restore from a copy in a cloud vault, first copy it back to the local vault.

You track these jobs with the same job states and monitoring tools (such as Amazon CloudWatch, Amazon EventBridge, Amazon SNS, and AWS CloudTrail) that AWS Backup uses for your AWS resources.

When a recovery point reaches the end of its retention period, or when you delete it, its status changes to Deleting while the appliance removes it. If the appliance is offline and can't remove it, the status changes to Expired.

Full, differential, and incremental backups

AWS Backup does not track whether a given backup is full, differential, or incremental. Each recovery point is self-describing. Instead, you express your intent, and the backup appliance decides which kind of backup to run.

You express this intent with a setting on the resource: either a days threshold (how many days can pass before the next backup must be a full backup) or a schedule (for example, a full backup each week on a set day). AWS Backup turns your setting into guidance for the appliance, and the appliance then runs a full backup or a more efficient differential or incremental backup accordingly.

A few behaviors are always true:

  • The first backup of a resource is always a full backup, which establishes the baseline.

  • If the backup chain is broken, for example the baseline is no longer usable, the next backup is a new full backup that re-establishes the baseline.

  • For VMware virtual machines, the appliance uses changed block tracking (CBT) to capture only the blocks that changed since the last backup, for efficient incrementals. If changed block tracking is unavailable, the appliance falls back to a full backup.

Where to find per-resource-type steps

This topic covers the concepts behind backing up on-premises and self-managed resources. For step-by-step instructions, see the following sections of this guide:

To set up backup plans, use the existing AWS Backup backup plan documentation. Backup plans for on-premises and self-managed resources work the same way as they do for your AWS resources, so this guide does not re-document them.

Key terminology

The following terms are used throughout this documentation.

Term Meaning
Backup appliance A virtual appliance you run in your environment that connects AWS Backup to your on-premises and self-managed resources. AWS manages its software and patching.
Agent AWS provided software you install on a host to enable discovery and application-aware backups for resource types that require it. It communicates only with the appliance.
Resource provider The top-level entry point you register (for example, a vCenter Server or a database host). It is not backed up itself; it is used to discover resource targets.
Resource target An individual resource discovered beneath a provider (a VM, file share, database, or server) that you protect. Each has its own ARN.
Local vault An AWS Backup vault type whose backup data is stored on your appliance. On-premises and self-managed resources back up here first.
Copy to cloud The copy that moves recovery points from a local vault to a cloud vault. By default, a backup plan makes this copy to the rule's target vault. Copy actions in the plan make further copies from that cloud copy.

Non-destructive restores

Restores of on-premises and self-managed resources are non-destructive. When you restore, AWS Backup does not overwrite existing data. How AWS Backup handles a conflict depends on the resource type. NAS and server restores skip a file that already exists, and database restores create a new database. This protects your existing data during a restore.