Os snapshots e as operações revert relacionadas também têm suporte no nível de serviço
SSD de alta escala legados.
Embora os snapshots sejam compatíveis com o nível de serviço empresarial, eles não podem
ser combinados com o recurso de compartilhamentos múltiplos do Filestore.
Criar um snapshot
Use um dos seguintes métodos para criar um snapshot de uma instância:
Console do Google Cloud
No console Google Cloud , acesse a página de instâncias do Filestore.
Clique na instância da qual você quer criar um snapshot.
Clique na guia Snapshots e depois em Criar snapshot.
Em ID do snapshot, insira um nome para o snapshot. O nome do compartilhamento de arquivos e
o ID do snapshot podem ter uma extensão combinada de até 77 caracteres.
Opcional: adicione uma descrição ou identificadores ao snapshot.
Clique em Criar.
CLI da gcloud
Para criar um snapshot de uma instância, execute o comando
instances snapshots create. As flags --description e --labels são adicionadas como argumentos
opcionais:
SNAPSHOT_ID pelo nome que você quer dar ao snapshot. O
nome do compartilhamento de arquivos e o ID do snapshot podem ter uma duração combinada de até 77
caracteres. Por exemplo, my-snapshot-1.
INSTANCE_ID com o nome da instância para a qual você quer criar
um snapshot. Por exemplo, my-instance-1.
LOCATION pela zona ou região
da instância. Por exemplo, us-east1-b ou us-central1, respectivamente.
O nível de serviço da sua instância determina se uma zona ou região é um argumento válido.
DESCRIPTION com uma descrição do snapshot.
KEY=VALUE,... com um ou mais pares KEY=VALUE que você quer
incluir.
Exemplo
O comando a seguir cria um snapshot da instância nfs-server, que
está localizado em us-central1. O nome do snapshot é nfs-server-snapshot.
INSTANCE_ID pelo nome da instância de que você quer
criar uma lista de snapshots. Por exemplo, my-instance-1.
LOCATION pela zona ou região
da instância. Por exemplo, us-east1-b ou us-central1, respectivamente.
O nível de serviço da sua instância determina se uma zona ou região é um argumento válido.
SNAPSHOT_ID pelo nome que você quer dar ao snapshot. Por exemplo, my-snapshot-1.
INSTANCE_ID pelo nome da instância em que o snapshot
foi criado. Por exemplo, my-instance-1.
LOCATION pela zona ou região
da instância em que o snapshot foi criado. Por exemplo, us-east1-b
ou us-central1, respectivamente. O nível de serviço da sua instância determina se uma zona ou região é um argumento válido.
Atualizar um snapshot
Para atualizar um snapshot, execute o comando
instances snapshots update. As flags --description e --update-labels são adicionadas como argumentos
opcionais:
SNAPSHOT_ID pelo nome que você quer dar ao snapshot. Por exemplo, my-snapshot-1.
INSTANCE_ID pelo nome da instância em que o snapshot
foi criado. Por exemplo, my-instance-1.
LOCATION pela zona ou região
da instância em que o snapshot foi criado. Por exemplo, us-east1-b
ou us-central1, respectivamente. O nível de serviço da sua instância determina se uma zona ou região é um argumento válido.
NEW-DESCRIPTION por uma nova descrição do snapshot.
KEY1=VALUE1,... por um ou mais pares KEY=VALUE que você quer
atualizar. Se um rótulo existir, o valor dele será atualizado. Caso contrário, um
rótulo será criado.
Excluir um snapshot
A exclusão de snapshots é uma operação de longa duração que pode levar várias horas para
ser concluída, dependendo do número de arquivos envolvidos.
SNAPSHOT_ID pelo nome que você quer dar ao snapshot. Por exemplo, my-snapshot-1.
INSTANCE_ID pelo nome da instância em que o snapshot
foi criado. Por exemplo, my-instance-1.
LOCATION pela zona ou região
da instância em que o snapshot foi criado. Por exemplo, us-east1-b
ou us-central1, respectivamente. O nível de serviço da sua instância determina se uma zona ou região é um argumento válido.
Restaurar dados
É possível restaurar arquivos individuais de um snapshot ou reverter todo o compartilhamento de arquivos
para um estado anterior do snapshot.
É possível monitorar a capacidade de snapshot de uma instância usando o Metrics Explorer. Para mais
informações, consulte Criar gráficos com o Metrics Explorer.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-18 UTC."],[[["\u003cp\u003eThis guide explains how to create, manage, and utilize snapshots to preserve the state of your Filestore data.\u003c/p\u003e\n"],["\u003cp\u003eSnapshot and revert operations are only supported in Zonal, Regional, Enterprise, and legacy high scale SSD service tiers, but not in Basic HDD or Basic SSD.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a snapshot via the Google Cloud console or the gcloud CLI, by specifying a name, instance, and location, with optional descriptions and labels.\u003c/p\u003e\n"],["\u003cp\u003eThe gcloud CLI can be used to list, view, update, and delete snapshots, as well as revert the entire file share to a previous snapshot state.\u003c/p\u003e\n"],["\u003cp\u003eYou can monitor a snapshot's capacity using the Metrics Explorer, and restore individual files or the entire share using previously created snapshots.\u003c/p\u003e\n"]]],[],null,["# Create a snapshot to preserve the state of your data\n\nThis guide shows you how to create a snapshot to preserve the state of your\nFilestore data. To learn more about snapshots, see\n[Snapshots](/filestore/docs/snapshots).\n\nSupported tiers\n---------------\n\nThe following table shows which Filestore service tiers\nsupport snapshots and the [`revert instance`](/filestore/docs/reference/rest/v1/projects.locations.instances/revert)\noperation:\n\nSnapshots and related `revert` operations are also supported in the legacy\nhigh scale SSD [service tier](/filestore/docs/service-tiers).\n\nWhile snapshots are supported in the enterprise service tier, they can't\nbe combined with the [Filestore multishares](/filestore/docs/multishares)\nfeature.\n\nCreate a snapshot\n-----------------\n\nYou can create a snapshot of an instance using one of the following methods: \n\n### Google Cloud console\n\n1. In the Google Cloud console, go to the Filestore instances\n page.\n\n [Go to the Filestore instances page](https://console.cloud.google.com/filestore/instances)\n2. Click the instance that you want to create a snapshot of.\n\n3. Click the **Snapshots** tab and then click **Create snapshot**.\n\n4. For **Snapshot ID**, enter a name for the snapshot. The file share name and\n snapshot ID can have a combined length of up to 77 characters.\n\n5. **Optional**: Add a description or labels to the snapshot.\n\n6. Click **Create**.\n\n### gcloud CLI\n\nTo create a snapshot of an instance, run the [`instances snapshots create`](/sdk/gcloud/reference/filestore/instances/snapshots/create)\ncommand. The `--description` and `--labels` flags are added as optional\narguments: \n\n gcloud filestore instances snapshots create \u003cvar translate=\"no\"\u003eSNAPSHOT_ID\u003c/var\u003e \\\n --instance=\u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e \\\n --instance-location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n --description=\"\u003cvar translate=\"no\"\u003eDESCRIPTION\u003c/var\u003e\" \\\n --labels=\u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-nv\"\u003eKEY\u003c/span\u003e\u003c/var\u003e=\u003cvar translate=\"no\"\u003eVALUE\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eSNAPSHOT_ID\u003c/var\u003e with the name that you want to give the snapshot. The file share name and snapshot ID can have a combined length of up to 77 characters. For example, `my-snapshot-1`.\n- \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e with the name of the instance from which you want to create a snapshot. For example, `my-instance-1`.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e with the [zone or region](/filestore/docs/regions#supported_regions) of the instance. For example, `us-east1-b` or `us-central1`, respectively. Note that your instance's [service tier](/filestore/docs/service-tiers#overview) determines whether a zone or region is a valid argument.\n- \u003cvar translate=\"no\"\u003eDESCRIPTION\u003c/var\u003e with a description of the snapshot.\n- \u003cvar translate=\"no\"\u003eKEY=VALUE,...\u003c/var\u003e with one or more `KEY=VALUE` pairs that you want to include.\n\n#### Example\n\nThe following command creates a snapshot of the instance `nfs-server`, which\nis located in `us-central1`. The snapshot is named `nfs-server-snapshot`. \n\n gcloud filestore instances snapshots create nfs-server-snapshot \\\n --instance=nfs-server \\\n --instance-location=us-central1 \\\n\nList, view, update, and delete snapshots\n----------------------------------------\n\nYou can list, view, update, and delete snapshots. \n\n### Google Cloud console\n\nTo manage your snapshots in the Google Cloud console:\n\n1. Go to the Filestore instances page.\n\n [Go to the Filestore instances page](https://console.cloud.google.com/filestore/instances)\n2. Click the instance ID of the instance that you want to view snapshots\n of.\n\n3. Click the **Snapshots** tab.\n\nFrom the **Snapshots** tab:\n\n- To see details about a snapshot, click its snapshot ID.\n- To edit a snapshot, click **Edit** in the snapshots details page.\n- To delete a snapshot:\n\n1. Click the snapshot ID of the snapshot that you want to delete.\n2. Click **Delete**.\n3. When prompted, type the snapshot ID.\n4. Click **Delete**.\n\n### gcloud CLI\n\n### List all snapshots in your current project\n\nTo view a list of snapshots for an instance, run the [`instances snapshots list`](/sdk/gcloud/reference/filestore/instances/snapshots/list)\ncommand: \n\n gcloud filestore instances snapshots list \\\n --instance=\u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e \\\n --instance-location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e with the name of the instance from which you want to create a list of snapshots. For example, `my-instance-1`.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e with the [zone or region](/filestore/docs/regions#supported_regions) of the instance. For example, `us-east1-b` or `us-central1`, respectively. Note that your instance's [service tier](/filestore/docs/service-tiers#overview) determines whether a zone or region is a valid argument.\n\n### View information about a snapshot\n\nTo view information about a snapshot, run the [`instances snapshots describe`](/sdk/gcloud/reference/filestore/instances/snapshots/describe)\ncommand: \n\n gcloud filestore instances snapshots describe \u003cvar translate=\"no\"\u003eSNAPSHOT_ID\u003c/var\u003e \\\n --instance=\u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e \\\n --instance-location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eSNAPSHOT_ID\u003c/var\u003e with the name that you want to give the snapshot. For example, `my-snapshot-1`.\n- \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e with the name of the instance from which the snapshot was created. For example, `my-instance-1`.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e with the [zone or region](/filestore/docs/regions#supported_regions) of the instance from which the snapshot was created. For example, `us-east1-b` or `us-central1`, respectively. Note that your instance's [service tier](/filestore/docs/service-tiers#overview) determines whether a zone or region is a valid argument.\n\n### Update a snapshot\n\nTo update a snapshot, run the [`instances snapshots update`](/sdk/gcloud/reference/filestore/instances/snapshots/update)\ncommand. The `--description` and `--update-labels` flags are added as optional\narguments: \n\n gcloud filestore instances snapshots update \u003cvar translate=\"no\"\u003eSNAPSHOT_ID\u003c/var\u003e \\\n --instance=\u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e \\\n --instance-location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n --description=\"\u003cvar translate=\"no\"\u003eNEW-DESCRIPTION\u003c/var\u003e\" \\\n --update-labels=\u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-nv\"\u003eKEY1\u003c/span\u003e\u003cspan class=\"devsite-syntax-o\"\u003e=\u003c/span\u003eVALUE1,KEY2\u003cspan class=\"devsite-syntax-o\"\u003e=\u003c/span\u003eVALUE2...\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eSNAPSHOT_ID\u003c/var\u003e with the name that you want to give the snapshot. For example, `my-snapshot-1`.\n- \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e with the name of the instance from which the snapshot was created. For example, `my-instance-1`.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e with the [zone or region](/filestore/docs/regions#supported_regions) of the instance from which the snapshot was created. For example, `us-east1-b` or `us-central1`, respectively. Note that your instance's [service tier](/filestore/docs/service-tiers#overview) determines whether a zone or region is a valid argument.\n- \u003cvar translate=\"no\"\u003eNEW-DESCRIPTION\u003c/var\u003e with a new description of the snapshot.\n- \u003cvar translate=\"no\"\u003eKEY1=VALUE1,...\u003c/var\u003e with one or more `KEY=VALUE` pairs that you want to update. If a label exists, its value is updated, otherwise a new label is created.\n\n### Delete a snapshot\n\nSnapshot deletion is a long running operation that can take multiple hours to\ncomplete, depending the number of files involved.\n\nTo delete a snapshot, run the [`instances snapshots delete`](/sdk/gcloud/reference/filestore/instances/snapshots/delete)\ncommand: \n\n gcloud filestore instances snapshots delete \u003cvar translate=\"no\"\u003eSNAPSHOT_ID\u003c/var\u003e \\\n --instance=\u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e \\\n --instance-location=\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e \\\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eSNAPSHOT_ID\u003c/var\u003e with the name that you want to give the snapshot. For example, `my-snapshot-1`.\n- \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e with the name of the instance from which the snapshot was created. For example, `my-instance-1`.\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e with the [zone or region](/filestore/docs/regions#supported_regions) of the instance from which the snapshot was created. For example, `us-east1-b` or `us-central1`, respectively. Note that your instance's [service tier](/filestore/docs/service-tiers#overview) determines whether a zone or region is a valid argument.\n\nRestore data\n------------\n\nYou can restore individual files from a snapshot or revert the entire file share\nto a prior snapshot state.\n\nFor more information, see [Restore a file from a snapshot](/filestore/docs/restore-file)\nand [Revert an instance to a prior snapshot state](/filestore/docs/revert-snapshot).\n\nMonitoring\n----------\n\nYou can monitor an instance's snapshot capacity using Metrics Explorer. For more\ninformation, see [Create charts with Metrics Explorer](/monitoring/charts/metrics-explorer).\n\nWhat's next\n-----------\n\n- [Snapshots overview](/filestore/docs/snapshots)\n- [Restore a file from a snapshot](/filestore/docs/restore-file)\n- [Revert an instance to a prior snapshot state](/filestore/docs/revert-snapshot)\n- [Schedule Filestore enterprise snapshots](/filestore/docs/schedule-filestore-enterprise-snapshots)\n- [Backups overview](/filestore/docs/backups)"]]