Backups in Yandex Managed Service for Valkey™
Yandex Managed Service for Valkey™ supports automatic and manual database backups.
Yandex Managed Service for Valkey™ uses AOF (append-only file) with forced write to disk every second through the appendfsync everysec
A backup of all cluster data (an RDB snapshot) is automatically created every day and stored for seven days. You cannot disable automatic backups or change the retention period.
To restore a cluster from a backup, follow this guide.
Creating backups
You can create both automatic and manual backups. In both cases, the following method is used:
- The first backup and every seventh backup are full backups of all databases.
- Other backups are incremental and store only the data that has changed since the previous backup to save space.
After a backup is created, it is compressed for storage. The exact backup size is not displayed.
You can set the backup start time when creating or updating a cluster. By default, the backup process starts at 10 p.m. UTC. The backup will start within 30 minutes of the specified time.
Alert
When data is written intensively during backups, the cluster might become unavailable as hosts run out of memory. For more information, see Memory management.
To avoid crashes:
- Make sure to start backups when the cluster load is minimum.
- Increase the amount of RAM by upgrading the host class.
Backups are only created on running clusters. If you do not use a Yandex Managed Service for Valkey™ cluster 24/7, check the backup start time settings.
For more information about creating a backup manually, see Managing backups.
Storing backups
Storing backups in Yandex Managed Service for Valkey™:
-
Backups are kept in Yandex Cloud internal storage as logical dumps and encrypted with GPG
. Each cluster has its own encryption keys. -
All backups (automatic or manual) are stored for seven days.
-
Backup storage is not subject to quotas
or limits for cluster storage space. -
Backups are stored in object storage and do not take up space in cluster storage. If there are N free GB of space in the cluster, the storage of the first N GB of backups is free of charge.
For more information, see the Yandex Managed Service for Valkey™ pricing policy.
Checking backup recovery
To test how backup works, restore a cluster from a backup and check the integrity of your data.