Backup

CommunityEnterprise

The plugin can back up a number of Kubernetes objects including: Deployments, Pods, Services or Persistent Volume Claims, check the following chapter for a complete list.

The backup will create a single (.yaml) file for any Kubernetes object which is saved. The Kubernetes Plugin provides a data backup feature for Filesystem PVCs by creating a data archive in the form of a single file named <pvc_name>.tar or <pvc_name>.<compression_type> for block data. For the Etcd backup capability, it generates a snapshot with the format snapshot-<day>-<month>-<year>.db. The objects are organized within the Bacula Catalog to facilitate browsing and restore operations. In the Bacula Catalog, Kubernetes objects are represented as follows:

  • /@kubernetes/namespaces/<namespace>.yaml Namespace definition

  • /@kubernetes/namespaces/<namespace>/<objecttype>/<name>.yaml Object definitions in the namespace

  • /@kubernetes/namespaces/<etcd-namespace(kube-system?)>/etcd/snapshot-<day>-<month>-<year>.db Etcd snapshot in their namespace

  • /@kubernetes/namespaces/<namespace>/persistentvolumeclaims/<pvc_name>.tar Filesystem PVC Data backup in the selected namespace

  • /@kubernetes/namespaces/<namespace>/persistentvolumeclaims/<pvc_name>.raw Block PVC Data backup in the selected namespace without inline compression

  • /@kubernetes/namespaces/<namespace>/persistentvolumeclaims/<pvc_name>.gz Block PVC Data backup in the selected namespace with gzip inline compression

  • /@kubernetes/namespaces/<namespace>/virtualmachines/<vm_name>.yaml Virtual machine definition in the namespace

  • /@kubernetes/persistentvolumes/<pv_name>.yaml Persistent Volume definition

  • /@kubernetes/storageclass/<sc_name>.yaml Storage Class definition

All supported Kubernetes objects will be saved if no filter options are set. You may limit which objects are saved using filtering options described in the Estimate and Backup Plugin Parameters chapter. By default, if no filter options are set, all supported Kubernetes objects will be saved. To see the Kubernetes Objects that may be filtered, a listing mode is available. This mode is described in the Resource Listing chapter.

Note

When backing up virtual machines, you are only backing up those virtual machines and their dependencies.

Read more:

See also

Next articles:

Go back to: Operations.