Aiven for Valkey™ service backups
Learn how backups work for your Aiven for Valkey™ service and set the time when automatic backups are taken.
How backups work
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.
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.
Backups are automatically deleted 30 days after the service's deletion date.
Configure the backup time
To edit the backup schedule for your service:
- Console
- Aiven API
- Aiven CLI
- Terraform
- In your service, click Backups.
- Click Actions > Configure backup settings.
- Click Add configuration options.
- Add
backup_hourandbackup_minute, and set their values. - Click Save configuration.
Call the ServiceUpdate
endpoint, and add the following properties to the user_config object:
curl --request PUT \
--url https://api.aiven.io/v1/project/PROJECT_NAME/service/SERVICE_NAME \
--header 'Authorization: Bearer YOUR_BEARER_TOKEN' \
--header 'content-type: application/json' \
--data '{
"user_config": {
"backup_hour": BACKUP_HOUR,
"backup_minute": BACKUP_MINUTE
}
}'
Replace the following:
SERVICE_NAME: the name of your service.PROJECT_NAME: the name of your project.BACKUP_HOUR: the hour when the service backup starts. Accepted values are integers between0and23.BACKUP_MINUTE: the minute when the service backup starts. Accepted values are integers between0and59.
Run the avn service update command,
and add the following properties to the user_config object:
avn service update SERVICE_NAME \
--project PROJECT_NAME \
--user-config '{
"backup_hour": BACKUP_HOUR,
"backup_minute": BACKUP_MINUTE
}'
Replace the following:
SERVICE_NAME: the name of your service.PROJECT_NAME: the name of your project.BACKUP_HOUR: the hour when the service backup starts. Accepted values are integers between0and23.BACKUP_MINUTE: the minute when the service backup starts. Accepted values are integers between0and59.
Use the backup_hour and backup_minute attributes in
your service resource
to set the start time for backups.
If a backup was recently made, it can take another backup cycle before the new backup time takes effect.
When backup_hour is set, the backup frequency changes from 12 hours to 24 hours.
Related pages