Backup/Recovery
System failures and data loss can happen at any time. Regular backups are the most reliable way to recover quickly from these situations.
KIWI provides various backup features tailored to different environments, helping you safely protect your valuable data and services.
Why are backups important?
- Disaster recovery: Quickly restore your system from unexpected situations like server failures or disk corruption .
- Data protection: Recover accidentally deleted data or configurations .
- Migration: Use backup data when moving to a new environment .
Backup Types
KIWI supports three backup methods depending on your operating environment.
- etcd Backup: For Kubernetes environments, using etcdctl for full cluster state backup
- Docker Backup: For Docker environments, using Docker CLI for container, volume, and image backup
- External Storage: For Kubernetes environments, using Velero for S3/MinIO integrated backup
Which backup type should you choose?
- Kubernetes environment: Using etcd backup + Velero together enables complete recovery .
- Docker environment: Protect your containers and data with Docker backup
- Large-scale production: Install Velero and MinIO to build an automated backup system .
Backup Scenarios
Infrastructure Setup
Set up the required infrastructure before starting backups.
- Velero/MinIO Installation: Installation guide for Velero and MinIO storage for Kubernetes backup
Backup Guides
Choose the backup method that fits your environment.
- etcd Backup: Backup all Kubernetes cluster state data as a snapshot
- Docker Backup: Safely backup Docker containers, volumes, and images .
- Recovery: Restore your system using backup data
Recommended backup strategy
For production environments, we recommend running daily backups alongside weekly full backups. Always create a manual backup before making important changes.