Docs

Volumes

Keep a folder of your app across deploys and restarts, how it is billed, and its limits.

A volume is a folder the app keeps across deploys and restarts.

cluz volumes add /data --size 10   # a 10 GB folder at /data in the app
cluz volumes list                  # each with its size and what it holds
cluz volumes rm /data              # asks you to type the path; --yes skips that

Size and bill

A volume is billed per GB a month for what it holds, as its latest copy read it. Its size is a mark: the dashboard warns as a volume nears it and once it goes past, and nothing stops a write beyond it.

Copies

The app runs on the server that holds its volumes. They are copied every 15 minutes, and each restores on its own from the dashboard's Backups.

Adding and removing

Adding or removing a volume redeploys the app's running image. An app not deployed yet mounts the volume at its first deploy. Removing one erases its files and their copies, and cannot be undone.

Limits

A volume takes a folder of the app's own, such as /data. System folders and the buildpack app's /workspace are refused. An app keeps up to 5 volumes of 1 to 500 GB each.