# Unable to Restore MariaDB Data in Kubernetes

**URL:** <https://discuss.kubernetes.io/t/unable-to-restore-mariadb-data-in-kubernetes/23046>\
**Category:** General Discussions\
**Tags:** development\
**Created:** [February 13, 2023, 1:14am UTC](https://discuss.kubernetes.io/t/unable-to-restore-mariadb-data-in-kubernetes/23046 "2023-02-13T01:14:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![c\_lumber](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/c_lumber/32/11816_2.png) [@c\_lumber](https://discuss.kubernetes.io/u/c_lumber)\
**Post date:** [February 13, 2023, 1:14am UTC](https://discuss.kubernetes.io/t/unable-to-restore-mariadb-data-in-kubernetes/23046/1 "2023-02-13T01:14:16Z")

</div>

I’m new to Kubernetes and I’m trying to restore or reuse my MariaDB data which was created from a previous MariaDB pod. However, I’m unable to access the old data after creating a new pod, persistent volume (PV), or persistent volume claim (PVC). I attempted to use Velero to backup the data, but it seems that the PV can’t be backed up. I’m not sure if it’s possible to simply copy everything from the hostpath, create a persistent volume pointing to that path, and use that PV in another pod and PVC to access the old data.

![image](https://us1.discourse-cdn.com/flex016/uploads/kubernetes/original/2X/e/e85037f3a06a42977e67774ede33fc34c80cc47e.png)

### Cluster information:

**Cloud being used** : bare-metal  
**OS** : Ubuntu 20.04.5 LTS  
**Kubernetes version** :  
{Major:“1”, Minor:“25”, GitVersion:“v1.25.6+k3s1”, GitCommit:“9176e03c5788e467420376d10a1da2b6de6ff31f”, GitTreeState:“clean”, BuildDate:“2023-01-26T00:47:47Z”, GoVersion:“go1.19.5”, Compiler:“gc”, Platform:“linux/amd64”}
