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 their retention period.
For clusters running an unsupported DBMS version, restoring from backups is not available.
To restore a cluster from a backup, follow this guide.
Creating a backup
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 are not using your Yandex Managed Service for Valkey™ cluster 24/7, check the settings of backup start time.
Learn about creating manual backups in Managing backups.
Storing a backup
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.
-
Quotas
and limits for cluster storage do not apply to backup storage. -
Backups are stored in an object storage and do not take up space in the cluster storage. If there are N GB of free space in the cluster, the first N GB of backups are stored free of charge.
For more information, see the Yandex Managed Service for Valkey™ pricing policy.
Testing recovery from a backup
To test how backup works, restore a cluster from a backup and check your data for integrity.