Backup + restore your cluster
How to backup your UltiHash cluster and restore from backup
Backing up your UltiHash cluster ensures that you can recover from data loss or corruption. Backups allow you to capture the full state of the cluster, including configuration and stored data, so you can restore it in-place or in a separate environment if needed.
Backup the cluster
You should back up your UltiHash cluster regularly to protect against accidental data loss, corruption, or infrastructure failures. The backup process captures the entire Kubernetes namespace where the cluster is deployed.
How to create a backup
Use Velero to create a backup of the Kubernetes namespace containing your UltiHash cluster:
velero backup create <backup_name> --include-namespaces <namespace_name> --wait
Replace <backup_name> with a unique name for the backup.
Replace <namespace_name> with the Kubernetes namespace where UltiHash is deployed.
The --wait flag ensures the command waits until the backup is complete before exiting.
Perform backups frequently enough that you can avoid substantial data loss if a disaster occurs.
Restore the cluster
If data is lost or corrupted, you can restore your UltiHash cluster from a previously created backup. Restores can be performed in-place (into the same cluster) or in a separate environment, which is useful for migrations or testing recovery procedures.
How to restore from a backup
Run the following Velero command, specifying the name of the backup you want to restore:
velero restore create <restore_name> --from-backup <backup_name> --wait
Replace <restore_name> with a name for the restore operation.
Replace <backup_name> with the name of the backup you are restoring from.
The --wait flag ensures the command waits until the restore is complete before exiting.
Restoring to a separate environment is often useful when migrating a cluster or testing your disaster recovery plan.
Last updated
Was this helpful?