# How to backup data from the Mongo DB cluster to a local filesystem

**URL:** <https://forums.percona.com/t/how-to-backup-data-from-the-mongo-db-cluster-to-a-local-filesystem/11899>\
**Category:** Percona Backup for MongoDB\
**Created:** [August 24, 2021, 9:21am UTC](https://forums.percona.com/t/how-to-backup-data-from-the-mongo-db-cluster-to-a-local-filesystem/11899 "2021-08-24T09:21:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![siva](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@siva](https://forums.percona.com/u/siva)\
**Post date:** [August 24, 2021, 9:21am UTC](https://forums.percona.com/t/how-to-backup-data-from-the-mongo-db-cluster-to-a-local-filesystem/11899/1 "2021-08-24T09:21:07Z")

</div>

Hi,  
We have a requirement to backup the data from a MongoDB cluster using PSMDB to a local filesystem. Below are the snippets from the storages section of the cr.yaml and the backup.yaml files.

From cr.yaml:

```auto
  backup:
    enabled: true
    restartOnFailure: true
    image: <image path>
    serviceAccountName: percona-server-mongodb-operator
    storages:
      fs-pvc:
        type: filesystem
        volume:
          persistentVolumeClaim:
            accessModes: ["ReadWriteOnce"]
            resources:
              requests:
                storage: 6Gi

```

From backup.yaml:

```auto
apiVersion: <apiversion>
kind: PerconaServerMongoDBBackup
metadata:
  finalizers:
  - delete-backup
  name: backup-aug24-1
  namespace: commonns
spec:
  psmdbCluster: mano-db-percona
  storageName: fs-pvc

```

We are getting the below error in the Percona server logs while trying to initiate the backup.  
Please let us know whether the backup to the local file system is supported. If not, could you please share if it is planned in any of the upcoming releases?

```auto
{"level":"error","ts":1629795648.3861542,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"perconaservermongodbbackup-controller","request":"commonns/backup-aug24-1","error":"reconcile backup: set backup config with storage fs-pvc: filesystem backup storage not supported yet, skipping storage name","errorVerbose":"filesystem backup storage not supported yet, skipping storage name\ngithub.com/percona/percona-server-mongodb-operator/pkg/psmdb/backup.(*PBM).SetConfig\n\t/go/src/github.com/percona/percona-server-mongodb-operator/pkg/psmdb/backup/pbm.go:130\ngithub.com/percona/percona-server-mongodb-operator/pkg/controller/perconaservermongodbbackup.(*Backup)

```

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [August 26, 2021, 5:49pm UTC](https://forums.percona.com/t/how-to-backup-data-from-the-mongo-db-cluster-to-a-local-filesystem/11899/2 "2021-08-26T17:49:13Z")

</div>

Hi, I see you are using the K8S operator. I suggest you post in [Percona Operator for MongoDB - Percona Community Forum](https://forums.percona.com/c/mongodb/percona-kubernetes-operator-for-mongodb/29)  
Looking at the documentation for PSMDB Operator - [Providing Backups](https://www.percona.com/doc/kubernetes-operator-for-psmongodb/backups.html) backups taken with the operator seem to support only s3-compatible storage at this time.
