Gli snapshot dei volumi Kubernetes ti consentono di creare una copia del volume in un momento specifico. Puoi utilizzare questa copia per ripristinare lo stato precedente di un volume o
per eseguire il provisioning di un nuovo volume.
Uno snapshot del volume in Kubernetes equivale a eseguire un backup dei dati in altri sistemi di archiviazione. Ad esempio, la creazione di uno snapshot del volume Kubernetes equivale alla creazione di un backup Filestore.
Puoi utilizzare gli snapshot per proteggere i tuoi carichi di lavoro e raggiungere obiettivi business-critical
Recovery Point Objective nel tuo piano di ripristino di emergenza o se hai
esigenze di conformità per salvare periodicamente i dati.
GKE supporta due modi per creare snapshot dei volumi:
API snapshot di volumi Container Storage Interface (CSI): si tratta di un processo manuale
che consente di creare e gestire snapshot di volumi tramite il
driver CSI del disco permanente di Compute Engine
o il driver CSI di Filestore,
applicando convenzioni di configurazione comunemente utilizzate nella programmazione Kubernetes open source.
Backup per GKE: si tratta di un servizio completamente gestito che automatizza la creazione
e la gestione degli snapshot dei volumi. Backup per GKE
supporta sia il backup della configurazione e del volume
per i carichi di lavoro stateful con dischi permanenti. Per i workload con Filestore,
è supportato solo il backup della configurazione. Per eseguire il backup dei dati nelle istanze
Filestore di base, devi
continuare a utilizzare l'API snapshot del volume tramite il driver
CSI Filestore.
A partire da GKE 1.17 o versioni successive, puoi eseguire il provisioning e collegare
snapshot dei volumi con i seguenti componenti:
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-14 UTC."],[],[],null,["# About volume snapshots\n\n[Autopilot](/kubernetes-engine/docs/concepts/autopilot-overview) [Standard](/kubernetes-engine/docs/concepts/choose-cluster-mode)\n\n*** ** * ** ***\n\nIn Google Kubernetes Engine (GKE), you can use the Kubernetes\n[volume snapshot feature](https://kubernetes.io/docs/concepts/storage/volume-snapshots/)\nfor [persistent volumes](/kubernetes-engine/docs/concepts/persistent-volumes)\nin your GKE clusters.\n\n- Kubernetes volume snapshots let you create a copy of your volume at a specific\n point in time. You can use this copy to bring a volume back to a prior state or\n to provision a new volume.\n\n- A [volume snapshot in Kubernetes](https://kubernetes.io/docs/concepts/storage/volume-snapshots/) is equivalent to taking a backup of your data in other\n storage systems. For example, creating a Kubernetes volume snapshot is\n equivalent to creating a [Filestore backup](/filestore/docs/backups).\n\n- You can use snapshots to protect your workloads and achieve business-critical\n recovery point objectives in your disaster recovery plan, or if you have\n compliance needs to periodically save data.\n\nGKE supports two ways to create volume snapshots:\n\n- **Container storage interface (CSI) volume snapshot API** : This is a manual\n process that lets you create and manage volume snapshots through the\n [Compute Engine Persistent Disk CSI driver](/kubernetes-engine/docs/how-to/persistent-volumes/gce-pd-csi-driver)\n or the [Filestore CSI driver](/kubernetes-engine/docs/how-to/persistent-volumes/filestore-csi-driver),\n applying configuration conventions commonly used in open source Kubernetes\n programming.\n\n- **Backup for GKE** : This is a fully-managed service that automates the creation\n and management of volume snapshots. [Backup for GKE](/kubernetes-engine/docs/add-on/backup-for-gke/concepts/backup-for-gke)\n supports both the [configuration and volume backup](/kubernetes-engine/docs/add-on/backup-for-gke/how-to/backup)\n for stateful workloads with persistent disks. For workloads with Filestore,\n only the configuration backup is supported. To back up data in your\n Filestore [basic tier](/filestore/docs/service-tiers) instances, you\n should continue to use the volume snapshot API through the Filestore\n CSI driver.\n\nFrom GKE version 1.17 or later, you can provision and attach\nvolume snapshots with the following components:\n\n- [VolumeSnapshotClass](https://kubernetes.io/docs/concepts/storage/volume-snapshot-classes/)\n\n- [VolumeSnapshot](https://kubernetes.io/docs/concepts/storage/volume-snapshots/)\n\n- [VolumeSnapshotContent](https://kubernetes.io/docs/concepts/storage/volume-snapshots/#volume-snapshot-contents)\n\n| **Note:** In Kubernetes version 1.20, the VolumeSnapshot API version was [promoted to GA](https://kubernetes.io/blog/2020/12/10/kubernetes-1.20-volume-snapshot-moves-to-ga/). In GKE 1.23, `snapshot.storage.k8s.io/v1beta1` is deprecated. If you are using a GKE cluster version 1.21 and later, migrate to `snapshot.storage.k8s.io/v1`.\n\nThe following documentation covers how to use the volume snapshot API with a\nGKE CSI driver:\n\n- [Back up and restore Filestore storage using volume snapshots](/kubernetes-engine/docs/how-to/persistent-volumes/backup-filestore-volume-snapshots).\n\n- [Back up and restore Persistent Disk storage using volume snapshots](/kubernetes-engine/docs/how-to/persistent-volumes/backup-pd-volume-snapshots).\n\nWhat's next\n-----------\n\n- Read the [Kubernetes Volume Snapshot](https://kubernetes.io/blog/2019/12/09/kubernetes-1-17-feature-cis-volume-snapshot-beta/) documentation.\n- Learn about [volume expansion](/kubernetes-engine/docs/how-to/volume-expansion).\n- Learn how to [manually install a CSI driver](/kubernetes-engine/docs/how-to/install-csi-driver).\n- Learn about [Filestore support for GKE](/filestore/docs/filestore-for-gke)."]]