Documentation

Persistent disks

Attach SSD storage to a service so files survive deploys and restarts.

By default, a service’s filesystem is temporary: it resets on every deploy and restart. Attach a persistent disk to keep files, for example uploads, SQLite databases or a CMS’s media folder.

Add a disk

Settings → Disk → Add disk, choose a name, a mount path (for example /var/data) and a size in GB. From the CLI at creation time:

rebasable services create cms --disk data:/var/data:10

Anything your app writes under the mount path is kept.

Things to know

  • A service with a disk runs one instance, and deploys stop the old instance before starting the new one (a few seconds of downtime). This prevents two instances from writing the same files.
  • You can grow a disk at any time without data loss. Disks cannot shrink.
  • Disks are priced per GB per month (see pricing).
  • Disks are available on paid instance types.
  • For databases, prefer managed PostgreSQL with automatic backups.