AWS Backup Gateway Diagnostics
When to use
Any AWS Backup Gateway investigation — gateway deployment, connectivity, hypervisor connections, vCenter authentication, VM discovery, VM backup errors, restore failures, restore performance, bandwidth throttling, network configuration, or gateway maintenance.
Investigation workflow
Step 1 — Collect and triage
aws backup-gateway list-gateways --query 'Gateways[*].{Name:GatewayDisplayName,Arn:GatewayArn,Type:GatewayType,LastSeen:LastSeenTime}'
aws backup-gateway list-hypervisors --query 'Hypervisors[*].{Name:Name,Arn:HypervisorArn,Host:Host,State:State}'
aws backup-gateway list-virtual-machines --query 'VirtualMachines[*].{Name:Name,Arn:ResourceArn,Path:Path,HypervisorId:HypervisorId}'
Step 2 — Domain deep dive
aws backup-gateway get-gateway --gateway-arn <gateway-arn>
aws backup-gateway get-hypervisor --hypervisor-arn <hypervisor-arn>
aws backup list-backup-jobs --by-resource-type VIRTUALMACHINE --by-state FAILED --max-results 10
Step 3 — Detailed investigation
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=backup-gateway.amazonaws.com --max-results 20
aws cloudwatch get-metric-statistics --namespace AWS/BackupGateway --metric-name GatewayBytesUploaded --dimensions Name=GatewayArn,Value=<arn> --start-time <start> --end-time <end> --period 3600 --statistics Sum
aws backup describe-backup-job --backup-job-id <job-id>
Read references/guardrails.md before concluding on any Backup Gateway issue.
Tool quick reference
| Tool / API |
When to use |
backup-gateway list-gateways |
List all backup gateways |
backup-gateway get-gateway |
Get gateway details and status |
backup-gateway list-hypervisors |
List connected hypervisors |
backup-gateway get-hypervisor |
Get hypervisor connection details |
backup-gateway list-virtual-machines |
List discovered VMs |
backup list-backup-jobs |
List backup job history |
backup describe-backup-job |
Get backup job details |
Gotchas: AWS Backup Gateway
- Backup Gateway is a virtual appliance deployed on-premises in the VMware environment. It requires network connectivity to both vCenter/ESXi and AWS endpoints.
- The gateway must be able to reach AWS endpoints on port 443. If using a proxy, the gateway must be configured with proxy settings during deployment.
- vCenter credentials stored in the gateway are encrypted. If vCenter passwords change, the hypervisor connection must be updated with new credentials.
- VM discovery is periodic, not real-time. New VMs may take time to appear in the discovered VM list.
- Backup Gateway uses Changed Block Tracking (CBT) for incremental backups. If CBT is disabled or reset on a VM, the next backup will be a full backup.
- Restore creates a new VM — it does NOT overwrite the original. The restored VM needs network and storage configuration in vCenter.
- Gateway bandwidth is shared across all concurrent backup and restore operations. Multiple simultaneous operations compete for bandwidth.
Anti-hallucination rules
- Always cite specific gateway ARNs, hypervisor ARNs, or backup job IDs as evidence.
- On-premises gateway and AWS cloud components have different failure modes. Never conflate them.
- VM backup failures can be gateway-side, hypervisor-side, or AWS-side. Always identify the failure point.
- Restore creates a NEW VM. Never claim restore overwrites the original VM.
- Spend no more than 2 minutes on any single hypothesis. Pivot if inconclusive.
12 runbooks
| Category |
IDs |
Covers |
| A — Gateway |
A1–A2 |
Deployment failures, connectivity |
| B — Hypervisor |
B1–B2 |
Connection errors, vCenter auth |
| C — VMs |
C1–C2 |
Discovery failures, backup errors |
| D — Restore |
D1–D2 |
Restore failures, restore performance |
| E — Network |
E1–E2 |
Bandwidth throttling, network config |
| F — Maintenance |
F1 |
Gateway maintenance |
| Z — Catch-All |
Z1 |
General troubleshooting |
1---2name: backup-gateway-diagnostics3description: Use this skill to investigate and troubleshoot AWS Backup Gateway problems by analyzing gateway deployment, connectivity, hypervisor connections, vCenter authentication, VM discovery, VM backups, restores, bandwidth throttling, network configuration, and gateway maintenance. Activate when: gateway deployment failures, connectivity issues, hypervisor errors, VM backup failures, restore problems, performance issues, or the user says something is wrong with Backup Gateway.4---56# AWS Backup Gateway Diagnostics78## When to use910Any AWS Backup Gateway investigation — gateway deployment, connectivity, hypervisor connections, vCenter authentication, VM discovery, VM backup errors, restore failures, restore performance, bandwidth throttling, network configuration, or gateway maintenance.1112## Investigation workflow1314### Step 1 — Collect and triage1516```17aws backup-gateway list-gateways --query 'Gateways[*].{Name:GatewayDisplayName,Arn:GatewayArn,Type:GatewayType,LastSeen:LastSeenTime}'18aws backup-gateway list-hypervisors --query 'Hypervisors[*].{Name:Name,Arn:HypervisorArn,Host:Host,State:State}'19aws backup-gateway list-virtual-machines --query 'VirtualMachines[*].{Name:Name,Arn:ResourceArn,Path:Path,HypervisorId:HypervisorId}'20```2122### Step 2 — Domain deep dive2324```25aws backup-gateway get-gateway --gateway-arn <gateway-arn>26aws backup-gateway get-hypervisor --hypervisor-arn <hypervisor-arn>27aws backup list-backup-jobs --by-resource-type VIRTUALMACHINE --by-state FAILED --max-results 1028```2930### Step 3 — Detailed investigation3132```33aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=backup-gateway.amazonaws.com --max-results 2034aws cloudwatch get-metric-statistics --namespace AWS/BackupGateway --metric-name GatewayBytesUploaded --dimensions Name=GatewayArn,Value=<arn> --start-time <start> --end-time <end> --period 3600 --statistics Sum35aws backup describe-backup-job --backup-job-id <job-id>36```3738Read `references/guardrails.md` before concluding on any Backup Gateway issue.3940## Tool quick reference4142| Tool / API | When to use |43|------------|-------------|44| `backup-gateway list-gateways` | List all backup gateways |45| `backup-gateway get-gateway` | Get gateway details and status |46| `backup-gateway list-hypervisors` | List connected hypervisors |47| `backup-gateway get-hypervisor` | Get hypervisor connection details |48| `backup-gateway list-virtual-machines` | List discovered VMs |49| `backup list-backup-jobs` | List backup job history |50| `backup describe-backup-job` | Get backup job details |5152## Gotchas: AWS Backup Gateway5354- Backup Gateway is a virtual appliance deployed on-premises in the VMware environment. It requires network connectivity to both vCenter/ESXi and AWS endpoints.55- The gateway must be able to reach AWS endpoints on port 443. If using a proxy, the gateway must be configured with proxy settings during deployment.56- vCenter credentials stored in the gateway are encrypted. If vCenter passwords change, the hypervisor connection must be updated with new credentials.57- VM discovery is periodic, not real-time. New VMs may take time to appear in the discovered VM list.58- Backup Gateway uses Changed Block Tracking (CBT) for incremental backups. If CBT is disabled or reset on a VM, the next backup will be a full backup.59- Restore creates a new VM — it does NOT overwrite the original. The restored VM needs network and storage configuration in vCenter.60- Gateway bandwidth is shared across all concurrent backup and restore operations. Multiple simultaneous operations compete for bandwidth.6162## Anti-hallucination rules63641. Always cite specific gateway ARNs, hypervisor ARNs, or backup job IDs as evidence.652. On-premises gateway and AWS cloud components have different failure modes. Never conflate them.663. VM backup failures can be gateway-side, hypervisor-side, or AWS-side. Always identify the failure point.674. Restore creates a NEW VM. Never claim restore overwrites the original VM.685. Spend no more than 2 minutes on any single hypothesis. Pivot if inconclusive.6970## 12 runbooks7172| Category | IDs | Covers |73|----------|-----|--------|74| A — Gateway | A1–A2 | Deployment failures, connectivity |75| B — Hypervisor | B1–B2 | Connection errors, vCenter auth |76| C — VMs | C1–C2 | Discovery failures, backup errors |77| D — Restore | D1–D2 | Restore failures, restore performance |78| E — Network | E1–E2 | Bandwidth throttling, network config |79| F — Maintenance | F1 | Gateway maintenance |80| Z — Catch-All | Z1 | General troubleshooting |