Introduction
Backup of data is essential to protect against data corruption and data loss. Xebia provides this as a strong shared platform capability in their Xebia Cloud Foundation, for all workloads to use.
A similar approach is described in this article, so backup can be provided as a shared capability across the AWS workloads.
AWS Backup is an AWS managed backup service that can help you setup an organization-wide policy-based service that simplifies data protection at scale. It provides automated backup scheduling, retention management, centralized data protection, cross-account management and more.
AWS Backup can be used in various configurations. The configuration in this article will allow Platform/Backup administrators to provide pre-configured backup plans to all existing and future workloads/application teams. Backed up data will be stored and managed in a centralized manner.
This backup article is provided in a 3-part series:
Part 1 – Enterprise AWS Backup – What you will get
Part 2 – Enterprise AWS Backup – Getting Started
Part 3 – Enterprise AWS Backup – Verifying & Troubleshooting
Verifying Backup
To verify the backup:
- Log into the workload account
- Add a backup tag to a data source which has been enabled as a resource type
- Wait for the frequency of the tag to pass (and add up to 12 hours after deployment for the policy to take effect)
- Verify the local vault contains a copy of the backup data
- Log into the backup account
- Choose the region of the primary key
- Verify the central vault contains a copy of the backup data (if replicate backup is chosen)
- Log into the management account
- Choose the region of the workload
- Navigate to https://console.aws.amazon.com/backup
- Verify cross-account monitoring is reporting correctly. Backup Jobs will list local and replicated backups. Copy jobs will list only replicated backups being copied from workload region local vault to backup region central vault.
Restoring Backup
AWS Backup cannot restore backups across accounts. If you need to restore from the organizational vault in the backup account to a data store in the workload account, you must first copy the backup from the organizational vault to the workload vault and restore from there.
Troubleshooting Backup
To troubleshoot the backup:
- Log into the workload account
- Choose the region of the workload
- Navigate to https://console.aws.amazon.com/cloudtrail
- Check Event history. Filter on Event Source = backup.amazonaws.com
- Look for Event names in this order:
BackupJobStarted -> BackupJobCompleted (for local backup vault)
CopyJobStarted -> CopyJobCompleted (for replicated backup vault)
RecoveryPointCreated (for backup added to vault) - Log into the backup account
- Choose the region of the primary key
- Navigate to https://console.aws.amazon.com/cloudtrail
- Check Event history. Filter on Event Source = backup.amazonaws.com
- Look for Event names in this order:
RecoveryPointCreated (for backup added to organizational vault)
Optional: Use Backup Account for Administration
You may wish to enable monitoring and management of backups from the backup account, so that backup administrators can do all their work from within this account. This responsibility can be delegated from the management account to the backup account:
- Log into the management account
- Navigate to https://console.aws.amazon.com/backup
- Choose the region of your workloads.
- Click on settings in the left navigation pane and scroll down to Delegated administrator section
- Click on Register delegated administrator and select Backup account. This will enable the backup account to perform the same actions as the management account.