# Backing Up etcd On Demand for Kubernetes

Applies to: Only on-premises environments and self-managed cloud environments

You can perform an on-demand backup of the etcd database.

Note

- The shell and the etcdctl command must be available on the etcd pod.

- If the Rancher etcd backup fails to create the `etcdsnapdir` folder, then you must manually create the folder at the following path:

      /var/lib/rancher/rke2/server/db/etcd/etcdsnapdir

## Before You Begin

To back up etcd, you must first enable etcd backups for the cluster.

## Procedure

1. From the Command Center navigation pane, go to Protect > Kubernetes.

   The Overview page appears.

2. In the Name column, click the cluster.

   The cluster page appears.

3. On the Application groups tab, in the etcd (system generated) row, click the action button , and then select Backup.

   The Backup options dialog box appears.

4. For Backup type, select the backup type.

5. Click Submit.

×

Loading...