Skip to content

ksail cluster backup

Creates a backup archive containing Kubernetes resource manifests.
The backup is stored as a compressed tarball (.tar.gz) with resources organized by type.
Metadata about the backup is included for restore operations.
Note: This backs up resource manifests (YAML) only. Persistent volume
contents are not included in the current implementation.
Example:
ksail cluster backup ./my-backup.tar.gz
ksail cluster backup ./backup.tar.gz --namespaces default,kube-system
ksail cluster backup ./backup.tar.gz --exclude-types events,pods
Usage:
ksail cluster backup [<output>] [flags]
Flags:
--compression int Compression level (-1..9, -1 = gzip default) (default -1)
--exclude-types strings Resource types to exclude from backup (default [events])
--name string Name of the cluster to back up (resolves the kubeconfig like the other cluster commands; defaults to the current kubeconfig context when unset)
--namespaces strings Namespaces to backup (default: all)
Global Flags:
--benchmark Show per-activity benchmark output
--config string Path to config file (default: ksail.yaml found via directory traversal)
--experimental Enable experimental (unstable) commands and features