Snapshot erstellen, um den Status Ihrer Daten zu erhalten
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
In dieser Anleitung erfahren Sie, wie Sie einen Snapshot erstellen, um den Status Ihrer Filestore-Daten beizubehalten. Weitere Informationen zu Snapshots finden Sie unter Snapshots.
Unterstützte Stufen
In der folgenden Tabelle sehen Sie, welche Filestore-Dienststufen Snapshots und den Befehl revert instance unterstützen:
Klicken Sie auf die Instanz, von der Sie einen Snapshot erstellen möchten.
Klicken Sie auf den Tab Snapshots und dann auf Snapshot erstellen.
Geben Sie unter Snapshot-ID einen Namen für den Snapshot ein. Der Name der Dateifreigabe und die Snapshot-ID dürfen zusammen maximal 77 Zeichen lang sein.
Optional: Fügen Sie dem Snapshot eine Beschreibung oder Labels hinzu.
Klicken Sie auf Erstellen.
gcloud-CLI
Führen Sie den Befehl instances snapshots create aus, um einen Snapshot einer Instanz zu erstellen. Die Flags --description und --labels werden als optionale Argumente hinzugefügt:
SNAPSHOT_ID durch den Namen, den Sie dem Snapshot geben möchten. Der Name der Dateifreigabe und die Snapshot-ID dürfen zusammen maximal 77 Zeichen lang sein. Beispiel: my-snapshot-1.
INSTANCE_ID durch den Namen der Instanz, von der Sie einen Snapshot erstellen möchten. Beispiel: my-instance-1.
LOCATION durch die Zone oder Region der Instanz. Beispiel: us-east1-b oder us-central1.
Ob eine Zone oder Region ein gültiges Argument ist, hängt von der Dienstebene Ihrer Instanz ab.
DESCRIPTION durch eine Beschreibung des Snapshots.
KEY=VALUE,... mit einem oder mehreren KEY=VALUE-Paaren, die Sie einschließen möchten.
Beispiel
Mit dem folgenden Befehl wird ein Snapshot der Instanz nfs-server erstellt, die sich in us-central1 befindet. Der Snapshot heißt nfs-server-snapshot.
INSTANCE_ID durch den Namen der Instanz, von der Sie eine Liste der Snapshots erstellen möchten. Beispiel: my-instance-1.
LOCATION durch die Zone oder Region der Instanz. Beispiel: us-east1-b oder us-central1.
Ob eine Zone oder Region ein gültiges Argument ist, hängt von der Dienstebene Ihrer Instanz ab.
SNAPSHOT_ID durch den Namen, den Sie dem Snapshot geben möchten. Beispiel: my-snapshot-1
INSTANCE_ID durch den Namen der Instanz, von der der Snapshot erstellt wurde. Beispiel: my-instance-1.
LOCATION durch die Zone oder Region der Instanz, aus der der Snapshot erstellt wurde. Beispiel: us-east1-b oder us-central1. Ob eine Zone oder Region ein gültiges Argument ist, hängt von der Dienstebene Ihrer Instanz ab.
Snapshot aktualisieren
Führen Sie den Befehl instances snapshots update aus, um einen Snapshot zu aktualisieren. Die Flags --description und --update-labels werden als optionale Argumente hinzugefügt:
SNAPSHOT_ID durch den Namen, den Sie dem Snapshot geben möchten. Beispiel: my-snapshot-1
INSTANCE_ID durch den Namen der Instanz, von der der Snapshot erstellt wurde. Beispiel: my-instance-1.
LOCATION durch die Zone oder Region der Instanz, aus der der Snapshot erstellt wurde. Beispiel: us-east1-b oder us-central1. Ob eine Zone oder Region ein gültiges Argument ist, hängt von der Dienstebene Ihrer Instanz ab.
NEW-DESCRIPTION durch eine neue Beschreibung des Snapshots.
KEY1=VALUE1,... durch ein oder mehrere KEY=VALUE-Paare, die Sie aktualisieren möchten. Wenn ein Label vorhanden ist, wird sein Wert aktualisiert, andernfalls wird ein neues Label erstellt.
Snapshot löschen
Das Löschen von Snapshots ist ein Vorgang mit langer Ausführungszeit, der je nach Anzahl der beteiligten Dateien mehrere Stunden dauern kann.
SNAPSHOT_ID durch den Namen, den Sie dem Snapshot geben möchten. Beispiel: my-snapshot-1
INSTANCE_ID durch den Namen der Instanz, von der der Snapshot erstellt wurde. Beispiel: my-instance-1.
LOCATION durch die Zone oder Region der Instanz, aus der der Snapshot erstellt wurde. Beispiel: us-east1-b oder us-central1. Ob eine Zone oder Region ein gültiges Argument ist, hängt von der Dienstebene Ihrer Instanz ab.
Daten wiederherstellen
Sie können einzelne Dateien aus einem Snapshot wiederherstellen oder die gesamte Dateifreigabe auf einen vorherigen Snapshot-Status zurücksetzen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-03 (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)"]]