---
title: "Volumes"
description: "Persistent NVMe storage for Fly Machines, on the same server as your app: encrypted at rest, snapshotted daily, from $0.15/GB per month."
---

# Volumes

![A row of pastel planter boxes full of flowers and plants, with butterflies, bees and a hummingbird](https://fly.io/phx/ui/images/volumes-hero-4650b0bec1dff379888f89ea45b04bf3.webp?vsn=d)

# *Volumes* on Fly.io

A Machine's root filesystem is temporary. When your app needs data that sticks around, give it a volume: a slice of NVMe drive on the same server as the Machine, mounted like any other directory, encrypted at rest and snapshotted every day.

[Try It Now](https://fly.io/app/sign-up?s=volumes)

---

![A grey cabinet with a happy face on every drawer, beside a potted plant](https://fly.io/phx/ui/images/cabinet-of-smiling-drawers-beside-a-plant-593c-c454c2e268bfaf14ea212210e067a6d3.webp?vsn=d)

## Volumes the Fly.io Way

Fly Volumes are persistent local storage for your Fly Machines. Each one is:

- NVMe on the same physical server as its Machine
- Mounted like a regular directory
- Encrypted at rest by default

- Snapshotted automatically every day
- Extendable, by hand or automatically
- Billed on your regular Fly.io invoice

[Try Volumes](https://fly.io/app/sign-up?s=volumes)

## What You Get With Fly Volumes

Local disk, not network storage, so reads and writes stay on the box

Volumes from **1 GB** up to **500 GB** , extended manually or automatically as they fill

Daily block-level **snapshots** , kept 5 days by default or anywhere from 1 to 60

**Forks** : an exact copy of a volume, on a different host or in another region

Volumes made with `fly volumes create` spread across separate hardware zones by default

Manage them with `fly volumes`, or declare them in the `[mounts]` section of your fly.toml.

![A big checkmark on a timeline with up and down arrows, circled by flying winged documents](https://fly.io/phx/ui/images/checkmark-circle-with-flying-winged-documents-1b97-c4c936efc8b8722c5b5d927f8e38c0ad.webp?vsn=d)

![Frankie the balloon holding an umbrella over a soggy bird in the rain](https://fly.io/phx/ui/images/balloon-holding-an-umbrella-over-a-soggy-bird-de17-6f3f7fc7d3eeb63b6bfa18c20ae517cd.webp?vsn=d)

## How Do Volumes Work?

**One volume, one Machine.** Each Machine mounts one volume, and each volume attaches to one Machine.

A volume lives on one server, in one region, and belongs to one app

Volumes aren't replicated for you: your app or database handles that, with tools like **LiteFS** or **Managed Postgres**

Run at least **two** Machines with volumes, ideally in more than one region

A single Machine with a volume goes down during host failures and every deploy. That's fine for development; for anything else, plan for two.

## Snapshots and Forks

**Daily snapshots** are on by default. Take one on demand, or turn the schedule off.

**Restore** any snapshot into a new volume of the same size or bigger

**Incremental:** each snapshot stores only what changed since the last one

**Forks** copy a volume's data into a new, independent volume

A daily snapshot may not have your latest writes, so keep your own backup plan for data you can't lose.

[See more in our docs](https://docs.fly.io/volumes/overview/)

![A Polaroid photo of a bird with a backpack hiking through a pink forest, followed by a little ghost](https://fly.io/phx/ui/images/polaroid-of-a-bird-hiking-with-a-ghost-e9ac-7b0f44534d93a184aaa5f958deb97cb6.webp?vsn=d)

## Simple Pricing

Volumes bill on the capacity you provision, not what you use. Snapshots bill on what they store, and the first 10 GB each month are free.

### Volumes

$0.15 /GB per month

Billed on provisioned size.

### Snapshots

$0.08 /GB per month

Billed on the total size stored.

### Free snapshots

10 GB /month

The first 10 GB of snapshots each month cost nothing.

### Performance by Machine Size

A volume's speed limit comes from the Machine it's attached to.

| Machine size | Max IOPS | Max bandwidth |
| --- | --- | --- |
| shared-cpu-1x, 2x | 4,000 | 16 MiB/s |
| shared-cpu-4x, 8x | 8,000 | 32 MiB/s |
| performance-1x | 12,000 | 48 MiB/s |
| performance-2x, 4x | 16,000 | 64 MiB/s |
| performance-8x, 16x | 32,000 | 128 MiB/s |

## Getting Started

Tell your app where to mount the volume in **fly.toml** :

```
[mounts]
  source = "myapp_data"
  destination = "/data"
```

Then create one volume per Machine, with that name, in the region your Machines run in, and deploy:

```
fly volumes create myapp_data -r ord
fly deploy
```

Check on them any time with `fly volumes list`.

[Read the full walkthrough in our docs](https://docs.fly.io/launch/volume-storage/)

## Frequently Asked Questions

What are Fly Volumes? +

Fly Volumes are persistent local storage for Fly Machines. Each volume is a slice of an NVMe drive on the same physical server as its Machine, mounted like a regular directory. Use one for any data that has to survive a restart, since a Machine's root filesystem is ephemeral.

Are volumes replicated? +

No. A volume lives on one server in one region, and Fly.io doesn't replicate it for you. Your app or database handles replication, with tools like LiteFS for SQLite or Fly Managed Postgres. Run at least two Machines with volumes, ideally in more than one region: a single Machine with a volume has downtime during host failures and every deploy.

Can two Machines share a volume? +

No. Each Machine mounts one volume and each volume attaches to one Machine. Volumes also belong to one app and can't be shared between apps. To give a second Machine the same data, fork the volume or replicate the data in your app.

How big can a volume be? +

Volumes start at 1 GB by default and go up to 500 GB. You can extend a volume by hand or have it extend automatically as it fills, through the mounts section of fly.toml. Volumes can't be shrunk.

How do volume snapshots work? +

Fly.io takes a block-level snapshot of every volume daily and keeps it for 5 days by default; you can set retention anywhere from 1 to 60 days. You can also take snapshots on demand, turn off the daily schedule, and restore any snapshot into a new volume of the same size or larger. A daily snapshot may not include your latest writes, so keep your own backups for data you can't lose.

How are volumes billed? +

Volumes cost $0.15 per GB per month, billed on the capacity you provision rather than what you use. Snapshots cost $0.08 per GB per month on the total size stored, and the first 10 GB of snapshots each month are free. Snapshots are incremental, so each one only adds the data that changed since the last.

Are volumes encrypted? +

Yes. Volumes are encrypted at rest by default, and snapshots of encrypted volumes are encrypted too. You can create an unencrypted volume with fly volumes create --no-encryption.

How fast are volumes? +

A volume's limits depend on the size of the Machine it's attached to, from 4,000 IOPS and 16 MiB/s on shared-cpu-1x and 2x Machines up to 32,000 IOPS and 128 MiB/s on performance-8x and 16x Machines.

Can I use a volume while my app builds or runs its release command? +

No. Volumes aren't available while the Docker image builds during fly deploy, and they aren't mounted on the temporary Machine that runs release_command.

## Keep Your Data Next to Your App. Right on the same server.

[Try Volumes](https://fly.io/app/sign-up?s=volumes)
