# Percona backup to private volume define hostpath

**URL:** <https://forums.percona.com/t/percona-backup-to-private-volume-define-hostpath/7737>\
**Category:** Percona Operator for MySQL\
**Created:** [July 2, 2020, 1:45am UTC](https://forums.percona.com/t/percona-backup-to-private-volume-define-hostpath/7737 "2020-07-02T01:45:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranggasama](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@ranggasama](https://forums.percona.com/u/ranggasama)\
**Post date:** [July 2, 2020, 1:45am UTC](https://forums.percona.com/t/percona-backup-to-private-volume-define-hostpath/7737/1 "2020-07-02T01:45:13Z")

</div>

I’m reading this guide&nbsp;[https://www.percona.com/doc/kubernetes-operator-for-pxc/backups.html#storing-backup-on-a-private-volume](https://www.percona.com/doc/kubernetes-operator-for-pxc/backups.html#storing-backup-on-a-private-volume "Link: https://www.percona.com/doc/kubernetes-operator-for-pxc/backups.html#storing-backup-on-a-private-volume"), and viewing the configuration:

```auto
backup:
...
storages:
fs-pvc:
type: filesystem
volume:
persistentVolumeClaim:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 6Gi
...

```

is there is option to choose hostpath, or is it like typical&nbsp;persistentVolumeClaim k8s resources, where i can manualy create pvc beforehand and put&nbsp;persistentVolumeClaim.claimName like this?

```auto
backup:
...
storages:
fs-pvc:
type: filesystem
volume:
persistentVolumeClaim:
claimName: backup-pvc
...

```

Any help is appreciated.  
Thank You

---

<div class="post-metadata">

**Author:** ![Tomislav\_Plavcic](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/tomislav_plavcic/32/9717_2.png) [@Tomislav\_Plavcic](https://forums.percona.com/u/Tomislav_Plavcic)\
**Post date:** [July 24, 2020, 9:01am UTC](https://forums.percona.com/t/percona-backup-to-private-volume-define-hostpath/7737/2 "2020-07-24T09:01:48Z")

</div>

Hi ranggasama,  
from what I see you cannot use it like you proposed. If you create a pvc before and try to specify it with a claimName and without other options operator will give error that eg. resources.storage is not specified. How it works is that operator creates a pvc automatically from selected options and generates a name like \<cluster\_name\>-xb-\<backup\_name\>, for example:  
$ kubectl get pvcNAME&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;STATUS&nbsp; &nbsp;VOLUME&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CAPACITY&nbsp; &nbsp;ACCESS MODES&nbsp; &nbsp;STORAGECLASS&nbsp; &nbsp;AGEcluster1-xb-backup1&nbsp; &nbsp; &nbsp; Bound&nbsp; &nbsp; pvc-b7b25c65-6e68-4d24-8e9b-e99d09799915&nbsp; &nbsp;6Gi&nbsp; &nbsp; &nbsp; &nbsp; RWO&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; standard&nbsp; &nbsp; &nbsp; &nbsp;3m36scluster1-xb-backup2&nbsp; &nbsp; &nbsp; Bound&nbsp; &nbsp; pvc-15d93090-08c2-47e8-aef0-d6581dae8e93&nbsp; &nbsp;6Gi&nbsp; &nbsp; &nbsp; &nbsp; RWO&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; standard&nbsp; &nbsp; &nbsp; &nbsp;62s  
&nbsp;Also I don’t think you can specify hostpath for the backup.  
There’s a chance that I could be wrong and if I get more info I’ll post it here.
