Planning backups
When you plan a strategy for backing up your Block Storage for VPC volumes, you might find this checklist helpful to configure and use the backup service.
Planning backups
Consider the following prerequisites before you set up the VPC Backup Service.
Item | Considerations |
---|---|
Cloud Identity and Access Management (IAM) | Verify that you have IAM access permissions to create and manage backups for the account. |
Enterprise-level backups | Make sure that all Service-to-service authorizations are in place for the services in the child account and the enterprise account. If the authorization is missing in any one of the child accounts, the backup service generates an IBM Cloud® Activity Tracker event and marks the policy health degraded. |
Volumes | Evaluate which volumes are most important to back up. You can create backups of boot and data volumes. A volume with numerous changes and a lengthy retention period requires more attention than a volume with moderate changes. Also, the cumulative size of all backups for a volume can't exceed 10 TB. |
Multi-volume consistency groups | You can create backups of multiple Block Storage volumes that are attached to the same virtual server. When you create backups this way, you tag the virtual server instance. You can choose to include the boot volume in the backup or leave it out. |
Backup schedule | Determine a backup schedule based on the type of resources that you're backing up. For example, you might want to back up critical data that changes frequently more often than static data. |
Retention | Determine a retention policy for backups in the backup plan. As subsequent backups are created, you incur costs for each backup that you retain. Deleting older backups keeps costs down. The interval for creating a backup and its retention period can be the same or they can be different. The default retention period is 30 days. You can also set the total number of backups to retain up to 750 per volume. When that number is exceeded, the oldest backups are deleted. If you specify both the age and the number of backups, age takes priority in determining when to delete a snapshot. The count applies only if the oldest snapshot is within the age range. For more information, see Backup policies and backup plans. |
Backup plans | Decide on the number of backup plans that you need for a policy. For example, you can have separate plans for daily backups, weekly, and monthly. |
Naming | Make sure you have a unique name for your backup policy. For example, if you have a method for naming volumes, you might name a backup policy by using a similar convention. Naming conventions for backups that are created by the plan are the same as snapshots. For more information, see Naming snapshots. |
Interface | Choose the UI, CLI, API, or Terraform for creating and managing your backups. |
Volume restore | Evaluate when you might want to restore a volume from a backup. Keep in mind that restoring from a backup is a manual operation and not immediate such as a disaster recovery solution. |
Fast-restore | You can create and cache a copy of the backup snapshot in one or more zones of the region where your volume resides. Fast-restore can be used in disaster recovery scenarios when you need to restore volumes in a different zone of the same region. The fast restore feature can achieve a recovery time objectiveThe maximum duration of time within which an application should be restored after any type of disaster. (RTO) quicker than restoring from a regular snapshot. |
Cross-regional copy | You can create and store a copy of the backup snapshot in another region, and use it to create volumes in the target region. This feature can be used in disaster recovery scenarios when you need to start your virtual server instance and data volumes in a different region. Think about whether you need to restore data in other regions. |
Monitoring | Backup jobs that create or delete backup snapshots run according to the backup plan and the retention policy. You can check their status in the console, from the CLI, with the API, or Terraform. If a job fails, the health status code shows the reason for the failure. For more information, see Viewing backup jobs. New You can also set up a connection to Event Notifications and receive alerts to your preferred destinations. For more information, see Enabling event notifications for Backup for VPC. |
Creating backups: | |
Prerequisites | Verify that the volume is attached to a virtual server instance and that the instance is in a running state. |
Backup frequency | Verify that the plan that you selected is creating backups at the interval that you want. Backups do not occur instaneously like manually created snapshots. Backups usually occur within an hour of being triggered by a backup plan schedule. |
Timing | Consistency group backups: Creating crash-consistent snapshots of multiple volumes that are attached to the same virtual server instance leads to a short-lived I/O suspension that can last from a few milliseconds to a few seconds. The duration depends on the number and size of volumes that are connected to your virtual server instance. It is recommended to run your automated backup-policy during off-peak hours to minimize any impact on performance. |
Tags | Verify that at least one of your policy tags matches at least one tag of each resource that you want to back up. When you decide on the tags for your target resources, confirm that other policies are not using the same tags unless you want the resource to be backed up by multiple policies. |
Restoring a volume from a backup snapshot: | |
Volume restore performance | Review these performance considerations when you restore a volume from a backup snapshot. You might also experience different regional performance when
you restore a volume. Evaluate when to enable fast restore clones. Fast restore snapshots reduce latency by restoring a volume from a snapshot clone. The new volume data is immediately restored. |
Instance provisioning performance | Review these performance considerations when you decide on provisioning an instance from a bootable snapshot. |
Billing | Think about the number of backup snapshots that you want to take and other billing considerations as the number of backup snapshots grows. The fast restore feature is billed at an extra hourly rate for each zone that it is enabled in regardless of the size of the snapshot. Maintaining fast restore clones is considerably more costly than keeping regular snapshots. When you choose to create cross-regional copies, you are also charged for data transfer and storage capacity that is used in the other region. For more information, see the FAQs. |
Next steps
After you plan your backups, you can Create backup policies to back up your resources (individual volumes or multi-volume consistency groups).