Backup
Overview
The Aerospike Backup Service (ABS) on Aerospike Kubernetes Operator (AKO) can trigger a backup from a Custom Resource (CR) file that represents a backup configuration for an Aerospike cluster. We refer to this as an Aerospike Backup CR.
You can trigger both on-demand and scheduled backups using kubectl
or helm
.
Requirements
Before creating backups, deploy the ABS on your Kubernetes cluster using either:
Once running, the ABS reads the CR file to trigger a backup.
1. Prepare Aerospike backup CR file
Create your YAML-formatted CR file with the backup configuration you want to perform. See backup configuration settings for details on the parameters available in the backup CR file.
You can find a sample backup CR file in the main Aerospike Kubernetes Operator repository.
You can edit the CR file at any time to make changes and manage the backup.
2. Perform the Aerospike backup
Use kubectl
to apply the CR file you created to create a backup.
If you don't have a CR file, you can choose one of the backup sample files in the main AKO repository.
kubectl apply -f aerospikebackup.yaml -n aerospike