State lives in three places API objects (Deployments, Services, Secrets, PVCs) live in etcd. The bytes your app writes live on volumes, outside etcd. Some state lives outside the cluster entirely: a managed cloud database, DNS records, secrets in a vault.
Each place needs its own backup. A Git repo with your manifests helps rebuild objects, but it holds none of the data.
An etcd snapshot copies every object at one moment etcdctl snapshot save talks to etcd over TLS, so it needs the endpoint, the CA, and a client certificate and key. The result is one file, snapshot.db, with every object in the cluster at that moment.
Copy the file off the control plane node. A snapshot on the disk of the node you lose is no backup.
Key idea The snapshot holds Secrets too, in plain text unless encryption at rest is on. Store it like a secret.
Restoring a snapshot rewinds the whole cluster To restore, stop every API server first. Then etcdutl snapshot restore writes the snapshot into a new data directory, and you point etcd (for kubeadm, the static Pod manifest) at it. Restart the API servers, then the scheduler, controller manager and kubelets so no stale cache survives.
Everything goes back to 02:00. Objects created after that are gone, and controllers reconcile running Pods back to the old desired state.
Watch out An etcd restore is for losing the control plane, not for one deleted Deployment. It rewinds every namespace at once.
The snapshot has the PVC, not the data After the restore, the PVC and PV objects are back. The bytes on the disk are not in etcd. If the disk was lost too, the PV points at nothing, or at a fresh empty volume.
Volume data needs its own backup: storage snapshots, a file-level copy, or the database's own dump.
Velero exports API objects to object storage Velero runs in the cluster. You create a Backup resource, for example with velero backup create shop --include-namespaces shop. Velero reads the matching objects through the API server and writes them as a compressed archive to a bucket, its BackupStorageLocation.
Because it works through the API, Velero can back up one namespace or one label selector, and restore the same way. etcd is never touched directly.
Volume data goes by snapshot or by file copy With CSI snapshots, Velero creates a VolumeSnapshot for each PVC. It is fast, but the snapshot usually stays in the same storage system and region. With --snapshot-move-data, Velero copies the snapshot's data into the bucket.
File System Backup (--default-volumes-to-fs-backup) works with any volume type. The node-agent DaemonSet reads files from the mounted volume and uploads them with Kopia. It is portable, but slower on large volumes.
Key idea A snapshot that lives in the same storage system as the volume does not protect you from losing that system or region.
A snapshot of a busy database is only crash-consistent The snapshot catches the disk mid-write, as if the power went out. Most databases can recover from that, but half-written files or pages still in memory can cost data.
Backup hooks fix this. Pod annotations like pre.hook.backup.velero.io/command run a command in the container before the backup, such as fsfreeze --freeze or a pg_dump to the volume. A post hook unfreezes it afterwards.
Watch out For databases, prefer the database's own dump or replication-aware backup. Treat the volume snapshot as a second line.
A Schedule makes backups every night and deletes old ones velero schedule create shop-daily --schedule="0 2 * * *" --ttl 720h creates a Backup every night at 02:00. TTL is how long each backup is kept. The default is 30 days.
When a backup expires, Velero deletes its archive and the snapshots that belong to it. Watch backup status: a PartiallyFailed backup still counts in the list but is missing pieces.
A new cluster restores from the same bucket Cluster A is gone. Install Velero in cluster B and point it at the same bucket, ideally in ReadOnly mode so B cannot delete A's backups. Then velero restore create --from-backup shop-0200.
Velero restores in order: CRDs and namespaces first, then storage, PVs and PVCs, then Secrets and ConfigMaps, then workloads. Objects that already exist in B are skipped, with a warning if they differ from the backup, unless you pass --existing-resource-policy=update.
Key idea This is also how you migrate between clusters. Check storage class names and image registries, because the new cluster may not have the same ones.
A backup counts only after you restore it etcd snapshots recover a lost control plane, all at once. Velero backs up namespaces with their volumes to object storage and restores them anywhere. Outside state needs the backup of its own system.
A Git repo rebuilds objects but not data. Run a restore into a scratch cluster on a schedule, and time it. That time is your real RTO.
Summary Keep at least one copy in another region or account, so the same mistake or attacker cannot delete the cluster and its backups together.