About File Storage for VPC snapshots
New
File Storage snapshots are a zonal feature that is used to create a point-in-time copy of your File Storage for VPC share. The initial snapshot that you take is a full backup of the share. Subsequent snapshots of the same share are incremental, so they capture only the changes that occurred after the last snapshot was taken. You can use a snapshot to restore data to a new share in the console, from the CLI, with the API, or Terraform.
Snapshots concepts
Limitations
The following limitations apply to this release:
- File share snapshots cannot be copied to another zone. They are stored in the same location as the file share. If you want the snapshots to survive the loss of the availability zone, you need to configure replication for the file share. When a replica share is created, all snapshots that are present on the source volume are also copied to the replica.
- Snapshots are not supported on shares with Access control mode "VPC".
- Taking snapshots are also not supported on replica shares or Accessor shares. However, the
/.snapshot
directory is accessible both on replica and Accessor shares.
Creating and working with snapshots
You can create and manage your snapshots in the console, from the CLI, with the API, and Terraform.
- To use the console, log in to the IBM Cloud console.
- To use the CLI, download and install the required CLI plug-ins. For more information, see the CLI reference.
- To use the API, set up the VPC API.
- To use Terraform, download the Terraform CLI and configure the IBM Cloud Provider plug-in. For more information, see Getting started with Terraform.
For more information about creating and managing snapshots, and restoring a share from a snapshot, see the following topics.
Restoring a file or an entire share from a snapshot
To perform a single-file restoration, you can use native OS functions of your virtual server instance. Browse to the share's NFS mount target to open the /.snapshot
directory and see the data that is contained within each snapshot
of your share.
You can use the snapshot to create a share as well. The share that you create by using a snapshot must have the same file share profile as the snapshot. However, you can increase the share's capacity beyond the size of the snapshot, and you can adjust the IOPS, too. For more information, see Restoring a share from a snapshot.
Observability
Activity tracking events are generated when a snapshot creation is requested, when a snapshot is retrieved, when a snapshot is modified, and when its deletion is requested. For more information, see File storage snapshots events.
When snapshots are added or deleted, the change in the snapshot size is reported within 15 minutes. For more information, see Monitoring metrics for File Storage for VPC.
Next steps
Review creating share snapshots.