Membuat snapshot untuk mempertahankan status data Anda
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Panduan ini menunjukkan cara membuat snapshot untuk mempertahankan status data Filestore Anda. Untuk mempelajari snapshot lebih lanjut, lihat
Snapshot.
Tingkat yang didukung
Tabel berikut menunjukkan tingkat layanan Filestore yang mendukung snapshot dan operasi revert instance:
SNAPSHOT_ID dengan nama yang ingin Anda berikan ke snapshot. Nama
share file dan ID snapshot dapat memiliki panjang gabungan hingga 77
karakter. Contoh, my-snapshot-1.
INSTANCE_ID dengan nama instance tempat Anda ingin membuat snapshot. Contoh, my-instance-1.
LOCATION dengan zona atau region instance. Misalnya, us-east1-b atau us-central1.
Perhatikan bahwa tingkat layanan instance Anda menentukan apakah zona atau region merupakan argumen yang valid.
DESCRIPTION dengan deskripsi snapshot.
KEY=VALUE,... dengan satu atau beberapa pasangan KEY=VALUE yang ingin Anda
sertakan.
Contoh
Perintah berikut membuat snapshot instance nfs-server, yang terletak di us-central1. Snapshot diberi nama nfs-server-snapshot.
INSTANCE_ID dengan nama instance tempat Anda ingin membuat daftar snapshot. Contoh, my-instance-1.
LOCATION dengan zona atau region instance. Misalnya, us-east1-b atau us-central1.
Perhatikan bahwa tingkat layanan instance Anda menentukan apakah zona atau region merupakan argumen yang valid.
SNAPSHOT_ID dengan nama yang ingin Anda berikan ke snapshot. Contoh,
my-snapshot-1.
INSTANCE_ID dengan nama instance tempat snapshot dibuat. Contoh, my-instance-1.
LOCATION dengan zona atau region instance tempat snapshot dibuat. Misalnya, us-east1-b
atau us-central1. Perhatikan bahwa tingkat layanan instance Anda menentukan apakah zona atau region merupakan argumen yang valid.
Memperbarui cuplikan
Untuk memperbarui snapshot, jalankan perintah
instances snapshots update. Flag --description dan --update-labels ditambahkan sebagai argumen opsional:
SNAPSHOT_ID dengan nama yang ingin Anda berikan ke snapshot. Contoh,
my-snapshot-1.
INSTANCE_ID dengan nama instance tempat snapshot dibuat. Contoh, my-instance-1.
LOCATION dengan zona atau region instance tempat snapshot dibuat. Misalnya, us-east1-b
atau us-central1. Perhatikan bahwa tingkat layanan instance Anda menentukan apakah zona atau region merupakan argumen yang valid.
NEW-DESCRIPTION dengan deskripsi snapshot baru.
KEY1=VALUE1,... dengan satu atau beberapa pasangan KEY=VALUE yang ingin Anda perbarui. Jika label sudah ada, nilainya akan diperbarui. Jika tidak, label baru akan
dibuat.
Menghapus snapshot
Penghapusan snapshot adalah operasi yang berjalan lama yang dapat memerlukan waktu beberapa jam untuk menyelesaikannya, bergantung pada jumlah file yang terlibat.
SNAPSHOT_ID dengan nama yang ingin Anda berikan ke snapshot. Contoh,
my-snapshot-1.
INSTANCE_ID dengan nama instance tempat snapshot dibuat. Contoh, my-instance-1.
LOCATION dengan zona atau region instance tempat snapshot dibuat. Misalnya, us-east1-b
atau us-central1. Perhatikan bahwa tingkat layanan instance Anda menentukan apakah zona atau region merupakan argumen yang valid.
Pulihkan data
Anda dapat memulihkan setiap file dari snapshot atau mengembalikan seluruh berbagi file
ke status snapshot sebelumnya.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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)"]]