Redis Restore
Prerequisites
- Redis database asset
- Redis credentials
- Storage bucket asset
- Storage bucket asset credentials
Procedure from web console
- Navigate to the tasks page: Operations > Tasks (or go directly to
/home/operations/tasks) - Click on Create Task button
- Select Redis restore
- Fill out the Redis restore task form with the following information:
- Task name: Enter a descriptive name for your restore task
- The Redis asset to restore to: Select the target Redis instance from the dropdown
- The Bucket asset where backups are stored: Choose the storage bucket containing the backup from the dropdown
- The path inside the bucket where backup is saved: Define the base path within the bucket where backups are stored
- The restore path: Define the specific path within the bucket where the backup files are located (optional)
- The opts for Redis restore: Configure additional restore options (optional)
- Redis credential: Select the credential to access the Redis instance
- Bucket credential: Select the credential to access the storage bucket
- Kubernetes resources: Configure computational resources to be used
- Click Next to continue with the task configuration
- Select the target cluster where you want to execute the restore task (optional - if not specified, the task will run on the default cluster)
- Review the task configuration summary
- Click Create Task to execute the Redis restore task
Procedure from CLI
Create a YAML file with the Redis restore task configuration:
apiVersion: operations.resiliency.io/v1alpha1
kind: Task
metadata:
name: <task-name>
namespace: resiliency-system
spec:
placement:
clusterName: <target-cluster-id>
credentialName: <cluster-credential-name>
templateRef:
templateName: redis-restore
params:
- name: redis-asset
value: <redis-asset-id>
- name: redis-credential
value: <redis-credential-name>
- name: redis-restore-opts
value: "<restore-options>"
- name: bucket-asset
value: <bucket-asset-id>
- name: bucket-credential
value: <bucket-credential-name>
- name: bucket-path
value: <path-in-bucket>
- name: restore-path
value: <path-to-backup-in-bucket>
- name: kubernetes-resources
value: <kubernetes-resources-config>
Apply the task to the cluster:
kubectl apply -f redis-restore-task.yaml
Note:
- Replace the placeholder values (
<task-name>,<redis-asset-id>, etc.) with your actual configuration values - This task will perform a one-time Redis restore operation from the specified backup path
- The restore-path should point to the specific location of your backup files within the bucket (optional)