[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Handle Filestore volumes with Backup for GKE\n\nAutopilot Standard\n\n*** ** * ** ***\n\nThis page describes how to handle Filestore volumes with Backup for GKE.\n\nBackup for GKE doesn't integrate with Filestore volumes. This means\nthat backing up and restoring data directly from these volumes is not supported.\nHowever, Backup for GKE can be used to provide solutions for workloads that are\nbacked by Filestore volumes in certain disaster recovery scenarios.\n\nWith these solutions, you can back up Filestore volume configurations\nby enabling permissive mode. For restoration, you can use the reconnect\nFilestore volumes or restore Filestore volumes data\nout-of-band solutions.\n| **Note:** The solution applies only to Filestore volumes provisioned through the GKE Filestore CSI driver. It may not work for other types of NFS volumes.\n\nBack up Filestore volume configurations\n---------------------------------------\n\nBy default, backing up clusters that contain Filestore volumes\nfail if permissive mode is not enabled. When permissive mode is enabled,\nBackup for GKE captures the configuration of workloads and volumes.\nFor more information about permissive mode, see\n[Enable permissive mode on a backup plan](/kubernetes-engine/docs/add-on/backup-for-gke/troubleshoot/permissive-mode).\n\nReconnect Filestore volumes\n---------------------------\n\nBackup for GKE allows restore plans to specify the volume data restore policy to\n**Reuse existing volumes containing your data** . In this case, it creates\n`PersistentVolumeClaim` and `PersistentVolume` resources directly and references\nexisting Filestore volumes without provisioning new ones.\n\nIf the backup contains Compute Engine Persistent Disk volumes and you want to\nrestore data for those volumes, see [Define volume data restore behavior](/kubernetes-engine/docs/add-on/backup-for-gke/how-to/volume-data-restore-policy)\nfor how to configure volume data restore policy bindings.\n| **Note:** To reconnect Filestore volumes during a restore, ensure that volumes are available and accessible in the target cluster.\n\nBack up and restore Filestore volumes out-of-band\n-------------------------------------------------\n\nYou can use the Filestore backup capability to create separate backups\nof your Filestore volumes. These backups are independent of Backup for GKE,\nensuring you have a complete copy of the data.\n\n### Back up Filestore volumes out-of-band\n\nFilestore provides [backups](/filestore/docs/backup-restore#back-up-file-share) that create a copy of a file share,\nincluding all file data and metadata from the point in time the backup is created.\nYou can create separate backups for Filestore volumes in addition\nto Backup for GKE backups containing Filestore volume configuration.\nFor instructions, see [create a backup](/filestore/docs/backup-restore#create-backup) from the Filestore.\n\n### Restore Filestore volumes out-of-band\n\nWith both Filestore backups and Backup for GKE backups, you\ncan restore workloads using the following steps:\n\n1. [Restore](/filestore/docs/backup-restore#restore) Filestore volumes out-of-band using the Filestore backup.\n2. Create [static](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#static) `PersistentVolumes` that reference the restored Filestore volumes in the target cluster. These `PersistentVolumes` must have the `.spec.claimRef` field correctly referencing the to-be-created `PersistentVolumeClaims`.\n3. From Backup for GKE, initiate a restore using the volume data restore policy\n **Don't restore volume data** . The newly created PVCs bind to the\n `PersistentVolumes` created in the earlier step.\n\n If the backup contains Compute Engine Persistent Disk volumes and you want to\n restore data for those volumes, see [Define volume data restore behavior](/kubernetes-engine/docs/add-on/backup-for-gke/how-to/volume-data-restore-policy)\n for how to configure volume data restore policy bindings."]]