How to Snapshot a Network File Storage Share

Validated on 13 Oct 2025 • Last edited on 20 Oct 2025

Network File Storage is a fully managed, POSIX-compliant file storage solution built for demanding workloads like AI/ML pipelines, containerized applications, and DigitalOcean Kubernetes (DOKS) clusters. It provides scalable, high-throughput shared storage that simplifies storage management for distributed applications.

Snapshots for Network File Storage are currently available through the API only. Snapshots let you create a point-in-time backup of your share’s data. Snapshot data is available in a special hidden .snapshot directory at the root of the share itself.

Snapshots are billed based on their size. Each snapshot’s size is equal to the amount of storage used by the share at the time of creation. Read Network File Storage Pricing for details.

Snapshot a Share Using the API

To take a snapshot of a Network File Storage share via the API, use the NFS actions endpoint and set the action type to snapshot:

curl -X POST \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
    -d '{"type": "snapshot", "region": "atl1", "params": {"name": "<snapshot_name>"}}' \
    "https://api.digitalocean.com/v2/nfs/<your_share_id>/actions"

Replace <your_share_id> with the ID of your share, and <snapshot_name> with the desired name for the snapshot. The snapshot name must be twenty characters or less.

How to Snapshot a Network File Storage Share Using the DigitalOcean API
  1. Create a personal access token and save it for use with the API.
  2. Send a POST request to https://api.digitalocean.com/v2/nfs/{nfs_id}/actions.

cURL

Using cURL:

curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
  -d '{"type": "resize", "params": {"size_gib": 1024}, "region": "atl1"}' \
  "https://api.digitalocean.com/v2/nfs/${nfs_id}/actions"

To list and delete snapshots via the API, read the NFS section of the DigitalOcean API reference.

Access Snapshots

Snapshots are stored in a special hidden, read-only .snapshot directory at the root of the share. Each snapshot is a separate subdirectory of .snapshot, named with the snapshot name followed by the snapshot ID.

Note
You can not find the .snapshot directory using ls on your mount point, even if you use the -a option to show hidden files. The NFS server takes extra steps to hide .snapshot from ls, du, and other commands.

To list out the contents of your snapshot directory, use the following command:

ls -l /mnt/example-nfs-share/.snapshot

Replace /mnt/example-nfs-share/ with your mount point.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.