View a markdown version of this page

Upgrade backup agents - AWS Backup

Upgrade backup agents

You manage agent upgrades yourself, because agents run on your application hosts and an upgrade could affect the application. This is different from the appliance software, which AWS Backup upgrades automatically. You keep agents current either manually or on an automatic schedule.

When you upgrade an agent, the appliance pushes the new version to the agent. You do not download or reinstall anything on the host to upgrade.

Upgrade agents manually

When a new agent version is available, the resource provider's agent compliance status is UPGRADE_AVAILABLE. To upgrade manually, open the Download and manage agents page for your appliance. Under Resource providers with agents, choose the upgrade action in the Action column for the resource provider. Or call StartResourceProviderAgentUpgrade with the ARN of the resource provider. The appliance then pushes the new version to the agents of that resource provider. An upgrade always installs the latest agent version that the appliance supports.

Upgrade agents automatically

You can turn on automatic agent upgrades for an appliance and set a daily upgrade window, as a start hour and an end hour in UTC. During the window, AWS Backup upgrades every eligible agent on that appliance. An upgrade on a host waits while a backup runs on that host. If an upgrade doesn't start or finish within the window, it fails, and you can start it again.

  • In the AWS Backup console, on the Download and manage agents page for your appliance, choose Configure agent auto-upgrade. The page header and the Agent auto-upgrade field on the appliance details page show whether automatic upgrades are On or Off.

  • With the API, call PutAgentUpgradeSettings with EnableAutoUpgrade, StartHourUtc, and EndHourUtc. To view the settings, call GetAgentUpgradeSettings.

Agent version compliance

AWS Backup guarantees compatibility for agents up to two versions behind the appliance (N-2). An older agent keeps running, and AWS Backup doesn't stop its backups, but AWS Backup can't guarantee that the agent works correctly with the appliance. Keep your agents up to date.

The appliance reports the agent compliance status of each agent-based resource provider when it synchronizes the resource provider. You see the status in the Agent compliance status column of the Download and manage agents page, or in the AgentComplianceStatus value that GetResourceProvider returns. Resource providers that don't use an agent have no agent compliance status.

Status Meaning
UP_TO_DATE The agent runs the latest agent version that the appliance offers, or a newer one. There is nothing to upgrade.
UPGRADE_AVAILABLE A newer agent version is available for the host, and you can upgrade to it. See Upgrade agents manually.
NON_COMPLIANT A newer agent version is available, but it doesn't support the host's operating system, so the agent can't be upgraded. To get the newer agent, upgrade the host to an operating system version that the agent supports.

We recommend that you turn on automatic upgrades, or watch for the UPGRADE_AVAILABLE status, so that your agents stay current.

Monitor agent upgrades

AWS Backup sends an event to Amazon EventBridge, and records it in AWS CloudTrail, when an agent upgrade is pending, running, completed, or failed, and when an agent compliance status changes. Use Amazon EventBridge rules to track upgrades across your agents.