Skip to main content

Service backups

All Aiven services, except for Aiven for Apache Kafka®, have automatic encrypted backups.

Backups are stored in the object storage of the cloud region where the service is created, for example, S3 for AWS or Google Cloud Storage for Google Cloud.

note

If you change a service's cloud provider or an availability zone, its backups are not migrated from their original location.

Whenever a service is powered on from a powered-off state, the latest available backup is automatically restored.

Access to backups

Backups are encrypted and not available for download, but you can create your own backups with the appropriate tooling:

note

These tools are recommendations and are not intended to create a snapshot of your Aiven service but to provide access to the data.

View service backups

To view a service's backups in the Aiven Console:

  1. In you project, open the service.
  2. Click Backups.

Backup deletion and service recovery

A service's backups are automatically deleted 30 days after the service's deletion date.

To recover a service, contact Aiven support. Recovering a service might incur an additional cost.

Backup frequency and retention per service

There are specific backup strategies for particular service types.

Service typeBackup retention time based on service Plan
HobbyistStartupBusinessPremium
Aiven for Apache Kafka®No backupsNo backupsNo backupsNo backups
Aiven for PostgreSQL® / MySQLSingle backup only for disaster recovery2 days with PITR14 days with PITR30 days with PITR
Aiven for OpenSearch®Single backup only for disaster recoveryHourly backup for 24 hours and Daily backup for 3 daysHourly backup for 24 hours and Daily backup for 14 daysHourly backup for 24 hours and Daily backup for 30 days
Aiven for Apache Cassandra®Plan not availableSingle day backupSingle day backupSingle day backup
Aiven for CachingSingle backup only for disaster recoveryBackup every 12 hours up to 1 dayBackup every 12 hours up to 3 daysBackup every 12 hours up to 13 days
Aiven for Apache Flink®Plan not availableHourly backup up to 2 hoursHourly backup up to 2 hoursPlan not available
Aiven for Grafana®Plan not availableBackup every 1 hour up to 1 dayPlan not availablePlan not available
Aiven for ClickHouse®Daily backups up to 2 daysDaily backups up to 2 daysDaily backups up to 14 daysDaily backups up to 30 days
Aiven for Dragonfly®Plan unavailableBackup every 12 hours up to 1 dayBackup every 12 hours up to 3 daysBackup every 12 hours up to 13 days
Aiven for Valkey™Single backup only for disaster recoveryBackup every 12 hours up to 1 dayBackup every 12 hours up to 3 daysBackup every 12 hours up to 13 days

Aiven for Apache Kafka®

Aiven for Apache Kafka is usually used as a transport tool for data rather than a permanent store. Due to the way it stores data, traditional backup strategies are not feasible. As a result, Aiven does not perform backups for managed Apache Kafka services, and data durability is determined by data replication across the cluster.

However, automatic backups for essential Apache Kafka® service configurations are offered through configuration backups, and they come at no extra cost. If the Apache Kafka® service is powered off/on or if any incidents lead to the cluster's failure, the configuration backup facilitates restoring your Apache Kafka® service to its previous state.

To back up data passing through Apache Kafka, we recommend using one of the following tools:

  • MirrorMaker 2 to replicate the data to another cluster, which can be an Aiven service or a Apache Kafka cluster on your own infrastructure.

    With MirrorMaker 2, the backup cluster operates as an independent Apache Kafka service. You can freely choose a zone for your backup service since it operates independently from the primary service.

    note

    MirrorMaker 2 provides tools for mapping between the source and target offset, so you don't need to make this calculation. For more details, see section Offset Mapping in A look inside Kafka MirrorMaker 2.

  • Kafka Connect to backup the cluster, for instance, sinking data from Apache Kafka® to S3 via a dedicated Aiven connector.

For more information, refer to:

Aiven for PostgreSQL®

For Aiven for PostgreSQL, full daily backups are taken, and WAL segments are constantly archived to the cloud object storage. In case of node failure:

  • For a business or premium plan, Aiven can reconstruct the latest state from a replica.
  • For a startup plan, Aiven can reconstruct the latest state from the latest base backup and replay the latest WAL segments on top of that.

You can supplement this with a remote read-only replica service, which you can run in a different cloud region or with another cloud provider and promote to master if needed.

Edit the backup schedule

  1. In your service, click Backups in the sidebar.
  2. Click Actions > Configure backup settings.
  3. Click Add configuration options.
  4. Add backup_hour and backup_minute, and set their values.
  5. Click Save configuration.

If a backup was recently made, it can take another backup cycle before the new backup time takes effect.

For more information, refer to:

Aiven for MySQL®

Aiven for MySQL databases are automatically backed up with full daily backups and binary logs recorded continuously. All backups are encrypted with the open source myhoard software. Myhoard uses Percona XtraBackup internally for taking full (or incremental) snapshots for MySQL.

Edit the backup schedule

  1. In your service, click Backups in the sidebar.
  2. Click Actions > Configure backup settings.
  3. Click Add configuration options.
  4. Add backup_hour and backup_minute, and set their values.
  5. Click Save configuration.

If a backup was recently made, it can take another backup cycle before the new backup time takes effect.

For more information, refer to MySQL Backups.

Aiven for OpenSearch®

Aiven for OpenSearch has daily and hourly options with different backup frequencies and retention periods depending on the service plan:

  • Hobbyist plans:
    • Single backup for disaster recovery
  • Startup plans:
    • Hourly backups with a 24-hour retention period
    • Daily backups with a 3-day retention period
  • Business plans:
    • Hourly backups with a 24-hour retention period
    • Daily backups with a 14-day retention period
  • Premium plans:
    • Hourly backups with a 24-hour retention period
    • Daily backups with a 30-day retention period

You cannot configure these settings.

note

Aiven for OpenSearch only supports restoring from daily backups or hourly backups from the previous day.

Find out more about using your backups in our guide: Restore an OpenSearch® backup

Aiven for Apache Cassandra®

Aiven for Apache Cassandra backups are taken every 24 hours. You can choose when a backup starts within the 24 hours and, for example, move the backup outside peak hours to save resources. To configure the backup_hour and backup_minute settings, go to the Aiven Console > your Aiven for Apache Cassandra service > Backups > Actions > Configure backup settings.

note

The point-in-time recovery (PITR) feature is not available. To be notified once the PITR feature is available for Aiven for Apache Cassandra, contact support@aiven.io.

Aiven for Caching

Aiven for Caching automatically backs up data every 12 hours and supports configurable data persistence using Redis Database Backup (RDB).

Persistence settings

You can configure the redis_persistence settings from Actions > the Configure backup settings section on your Backups page in the Aiven Console.

  • Enabled (rdb): When you set redis_persistence to rdb, Aiven for Caching performs RDB dumps every 10 minutes whenever a key changes. These dumps provide additional data protection against Caching service incidents, limiting potential data loss to a maximum of 10 minutes. However, full backups are created only according to the backup schedule (every 12 hours) or when the service is shut down.

  • Disabled (off): When you set redis_persistence to off, Aiven for Caching stops all Redis RDB dumps and backups. If the service restarts or powers off for any reason, you may lose any data not yet backed up. Additionally, you cannot fork or replicate the service, which can affect potential scaling or disaster recovery plans.

    warning

    If you disable redis_persistence, the system immediately deletes all existing backups, preventing any data recovery from those backups. When you re-enable persistence, it starts a new backup cycle, but it won't restore any previously stored data.

note

The Append Only File (AOF) persistence method is not supported for the managed Aiven for Caching service.

Edit the backup schedule

  1. In your service, click Backups in the sidebar.
  2. Click Actions > Configure backup settings.
  3. Click Add configuration options.
  4. Add backup_hour and backup_minute, and set their values.
  5. Click Save configuration.

If a backup was recently made, it can take another backup cycle before the new backup time takes effect.

note

When backup_hour is set, the backup frequency changes from 12 hours to 24 hours.

Aiven for ClickHouse®

Aiven for ClickHouse® provides automatic daily backups. The Astacus backup manager for distributed databases runs on all nodes to coordinate backups of cluster databases.

Each file to be backed up is encrypted, compressed, and uploaded to an object storage (Amazon S3 or Google Cloud Storage) in the same region.

Aiven for ClickHouse backups contain database lists, table schemas, table content, and access entities (such as users or roles). They are backed up incrementally: files already present in the object storage are not re-uploaded and only changed parts are backed up.

note

Aiven for ClickHouse doesn't support so-called streaming backups: when a service is powered off, all data written after the last backup gets lost.

For more information about limitations on Aiven for ClickHouse backups, see Aiven for ClickHouse limitations.

For more information on Aiven for ClickHouse backups, see Backup and restore.

Edit the backup schedule

  1. In your service, click Backups in the sidebar.
  2. Click Actions > Configure backup settings.
  3. Click Add configuration options.
  4. Add backup_hour and backup_minute, and set their values.
  5. Click Save configuration.

If a backup was recently made, it can take another backup cycle before the new backup time takes effect.

Aiven for Dragonfly®

Aiven for Dragonfly automatically backs up data every 12 hours and supports configurable data persistence using Dragonfly Snapshot (DFS).

Persistence settings

  1. Go to your Dragonfly service and click Backups.

  2. Click Actions > Configure backup settings.

  3. Click Add configuration options and select dragonfly_persistence.

  4. Select a value:

    • Enabled (dfs or rdb): Dragonfly performs DFS or RDB dumps every 10 minutes whenever a key changes. These dumps provide additional data protection against service incidents, limiting potential data loss to a maximum of 10 minutes. However, full backups are created only according to the backup schedule every 12 hours or when the service is powered off.

    • Disabled (off): Dragonfly stops all dumps and backups. If the service restarts or powers off, you may lose data not yet backed up. Additionally, you cannot fork or replicate the service, which can affect scaling or disaster recovery plans.

  5. Click Save configuration.

warning

If you disable dragonfly_persistence, the system immediately deletes all existing backups, preventing any data recovery from those backups. When you re-enable persistence, it starts a new backup cycle, but it won't restore any previously stored data.

note

The Append Only File (AOF) persistence method is not supported for the managed Aiven for Dragonfly service.

Aiven for Valkey™

Aiven for Valkey automatically backs up data every 12 hours and supports configurable data persistence using Redis Database Backup (RDB).

Persistence settings

  1. Go to your Valkey service and click Backups.

  2. Click Actions > Configure backup settings.

  3. Click Add configuration options and select valkey_persistence.

  4. Select a value:

    • Enabled (rdb): Valkey performs RDB dumps every 10 minutes whenever a key changes. These dumps provide additional data protection against Valkey service incidents, limiting potential data loss to a maximum of 10 minutes. However, full backups are created only according to the backup schedule every 12 hours or when the service is powered off.

    • Disabled (off): Valkey stops all RDB dumps and backups. If the service restarts or powers off, you may lose any data not yet backed up. Additionally, you cannot fork or replicate the service, which can affect potential scaling or disaster recovery plans.

  5. Click Save configuration.

warning

If you disable valkey_persistence, the system immediately deletes all existing backups, preventing any data recovery from those backups. When you re-enable persistence, it starts a new backup cycle, but it won't restore any previously stored data.

note

The Append Only File (AOF) persistence method is not supported for the managed Aiven for Valkey service.

Edit the backup schedule

  1. In your service, click Backups in the sidebar.
  2. Click Actions > Configure backup settings.
  3. Click Add configuration options.
  4. Add backup_hour and backup_minute, and set their values.
  5. Click Save configuration.

If a backup was recently made, it can take another backup cycle before the new backup time takes effect.

note

When backup_hour is set, the backup frequency changes from 12 hours to 24 hours.

BYOC service backups

Learn about backups for services hosted in custom clouds or bring your own cloud (BYOC) environments.