Administer > Administer the Container Deployment Foundation > Security > Data backup for the single-master cluster

Data backup for the single-master cluster

To back up the data in the data directory for the single-master cluster, use the etcdctl backup command.

For example:

etcdctl backup \

--data-dir %data_dir% \

--backup-dir %backup_data_dir%

You can also use the etcdctl backup command to back up all the exported folders in the NFS server too.

The etcdctl backup command will rewrite some of metadate contained in the backup (specifically, the node ID and cluster ID), which means that the node will lose its former identity.

Note In order to recreate a cluster from the backup, you will need to start a new, single-node cluster. The metadata is rewritten to prevent the new node from inadvertently being joined onto an existing cluster.