Backups in Azure HorizonDB

This article explains the automated backup feature in Azure HorizonDB.

Azure HorizonDB provides fully managed, built-in backups to protect data and support reliable recovery. Backups happen automatically and don't require ongoing management. You can configure options such as backup retention and geo-redundancy based on your data protection requirements.

Backup overview

Azure HorizonDB backup operations are snapshot-based and complete near instantaneously, with no impact on database performance or service availability. In addition to snapshots, the service continuously archives write-ahead logs (WAL) to Azure Blob storage as transactions commit. WAL archiving captures and persists database changes in near real time and doesn't require manual configuration or impact query execution or application availability.

The snapshot and archiving processes are managed by the storage layer and run independently of the compute layer, which reduces resource overhead and maintains consistent performance for active workloads.

The configured backup retention policy determines how long the system retains WAL records. WAL archiving, combined with periodic snapshots, supports point-in-time restore (PITR), which means you can restore the database to a specific time within the retention window. This supports recovery from scenarios such as data corruption, unintended changes, or operational incidents.

Backup operations complete quickly regardless of database size because they use storage snapshots. Restore operations use these snapshots together with WAL replay to recover the database to the requested restore point.

Backup retention

HorizonDB supports a backup retention period of 1 to 35 days. The retention period determines how far back you can restore your cluster using point-in-time restore. The default backup retention period is 7 days.

Increasing the retention period can increase backup storage costs because charges are based on the amount of backup data retained. All backups are encrypted at rest using Advanced Encryption Standard (AES) 256-bit encryption. The first snapshot is taken immediately after the cluster is created. After the initial snapshot, Azure HorizonDB periodically creates additional snapshots while continuously archiving WAL records.

Backup metrics

In Azure HorizonDB, automated backups consist of incremental storage snapshots and archived WAL records. Both are retained according to the configured backup retention period.

Use the Backup Used metric in the Azure portal to monitor the backup storage that a cluster consumes. The Backup Used metric represents the storage consumed by retained storage snapshots and archived WAL records within the configured backup retention period.

In HorizonDB, Azure Monitor metrics report the following consumption information:

  • Storage Used: Amount of storage used by the service, including database files and the active transaction log.
  • Backup Used: Amount of backup storage used by the service, including snapshots of database files and archived WAL records.

To view backup and data storage metrics in the Azure portal, follow these steps:

  1. Go to the HorizonDB cluster for which you want to monitor backup and data storage metrics.
  2. In the Monitoring section, select the Metrics page.
  3. From the Metric dropdown list, select the Storage Used and Backup Used metrics with an appropriate aggregation rule.

Screenshot showing backup and storage metrics of HorizonDB cluster.

Backup storage cost

Azure HorizonDB backup storage costs depend on the amount of backup storage consumed, which can vary based on workload characteristics.

Write-heavy workloads more frequently change data pages, which results in larger storage snapshots. Such workloads also generate more transaction logs, which adds to the overall backup costs. You pay for backup storage based on gigabytes consumed per month. Azure HorizonDB doesn't bill the underlying allocated database storage again as backup storage. Billable backup storage consists of incremental data changes captured by snapshots and retained WAL archives. For pricing details, see the Azure HorizonDB pricing page.

For HorizonDB, calculate billable backup storage as follows:

Total billable backup storage size = (incremental snapshot storage + retained WAL archive storage)

Data storage size is excluded from billable backup storage because it is already billed as allocated database storage.

Geo-redundant backup and restore

You must enable geo-redundant backup when you create the cluster; you can't enable it on an existing cluster. You can restore a cluster created with geo-redundant backup to another HorizonDB region.

When you configure a cluster with geo-redundant backup, backup data and write-ahead log (WAL) records are replicated asynchronously to the paired region. After creating the cluster, wait at least one hour before initiating a geo-restore to allow the initial backup data to replicate to the paired region.

Because replication is asynchronous, backup data in the paired region can lag behind the source region by up to one hour, resulting in a recovery point objective (RPO) of up to one hour. A geo-restore uses the latest backup data available in the paired region. Point-in-time restore to the paired region isn't supported.

The recovery time objective (RTO) depends on factors such as the database size, the time of the most recent backup, and the amount of WAL that must be processed during recovery. Recovery typically takes from a few minutes to a few hours.

For more information, see the Restore to paired region (geo-restore).

Important

When the primary region is unavailable, you can't create a new geo-redundant cluster in its paired region because geo-redundant storage provisioning requires the primary region to be available. However, you can still geo-restore an existing source cluster to its HorizonDB paired region. For more information, see the Restore to paired region (geo-restore).

Backup limitations

  • A cluster can use geo-redundant backups or customer-managed keys (CMK), but not both.
  • You can use point-in-time restore only for restore points that are at least five minutes before the current timestamp.

Note

Regardless of database size, heavy transactional activity generates more WAL data, which increases backup storage consumption.