This guide shows you how to create a snapshot to preserve the state of your Filestore data. To learn more about snapshots, see Snapshots.
Create a snapshot
You can create a snapshot of an instance using one of the following methods:
Google Cloud console
In the Google Cloud console, go to the Filestore instances page.
Click the instance that you want to create a snapshot of.
Click the Snapshots tab and then click Create snapshot.
For Snapshot ID, enter a name for the snapshot. The file share name and snapshot ID can have a combined length of up to 77 characters.
Optional: Add a description or labels to the snapshot.
Click Create.
gcloud CLI
To create a snapshot of an instance, run the instances snapshots create
command. The --description and --labels flags are added as optional
arguments:
gcloud filestore instances snapshots create SNAPSHOT_ID \
--instance=INSTANCE_ID \
--instance-location=LOCATION \
--description="DESCRIPTION" \
--labels=KEY=VALUE
Replace the following:
- SNAPSHOT_ID 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. - INSTANCE_ID with the name of the instance from which you want to
create a snapshot. For example,
my-instance-1. - LOCATION with the zone or region
of the instance. For example,
us-east1-borus-central1, respectively. Note that your instance's service tier determines whether a zone or region is a valid argument. - DESCRIPTION with a description of the snapshot.
- KEY=VALUE,... with one or more
KEY=VALUEpairs that you want to include.
Example
The following command creates a snapshot of the instance nfs-server, which
is located in us-central1. The snapshot is named nfs-server-snapshot.
gcloud filestore instances snapshots create nfs-server-snapshot \
--instance=nfs-server \
--instance-location=us-central1 \
List, view, update, and delete snapshots
You can list, view, update, and delete snapshots.
Google Cloud console
To manage your snapshots in the Google Cloud console:
Go to the Filestore instances page.
Click the instance ID of the instance that you want to view snapshots of.
Click the Snapshots tab.
From the Snapshots tab:
- To see details about a snapshot, click its snapshot ID.
- To edit a snapshot, click Edit in the snapshots details page.