# How to take backup of k8s cluster without using 3rd party application?

**URL:** https://discuss.kubernetes.io/t/how-to-take-backup-of-k8s-cluster-without-using-3rd-party-application/15710
**Category:** General Discussions
**Created:** [April 28, 2021, 2:01pm UTC](https://discuss.kubernetes.io/t/how-to-take-backup-of-k8s-cluster-without-using-3rd-party-application/15710 "2021-04-28T14:01:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Akhil\_Kolla](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/akhil_kolla/32/6498_2.png) [@Akhil\_Kolla](https://discuss.kubernetes.io/u/Akhil_Kolla)
#### Post date: [April 28, 2021, 2:01pm UTC](https://discuss.kubernetes.io/t/how-to-take-backup-of-k8s-cluster-without-using-3rd-party-application/15710/1 "2021-04-28T14:01:45Z")

</div>

Hi,  
I am trying to take a backup of the Kubernetes cluster (not PVs). I tried taking backup of /var/lib/etcd but only the changes in the namespace are being reflected in /var/lib/etcd any other changes like replica sets, pods and etc. are not reflected. The solution I am looking for should be able to restore the cluster into a prior state.

### Cluster information:

Kubernetes version:1.18.1.  
Cloud being used: bare-metal  
Host OS: centos
