Back to DocumentationBag of Holding

Cold storage for your apps

Give deployed apps a big, cheap data folder for archives, exports, and media.

July 2, 202623 views

Cold storage for your apps

Attach a Bag of Holding to an app server to get a large folder for data that doesn't belong on fast local disk: user uploads, generated exports, backups your app makes for itself, media libraries.

How to attach

  1. Buy a Bag from Dashboard → Bag of Holding, in the same region as your app server.
  2. Click Attach to a serviceApp - cold-data folder, pick your app server, and choose a mount path (e.g. /srv/cold-data).
  3. Redeploy the app after attaching. Your app then sees the storage at the same path inside its container (a path under your app's data directory also works and shows up under /app/data).

What it's good for

  • Large, infrequently-accessed files (cold data)
  • Append-mostly data: logs you keep, exports, media

What it's not good for

  • Databases and anything doing lots of small random writes: keep those on local disk
  • Files your app needs at very low latency on every request

Detaching

Files stay on the Bag when you detach (nothing is copied back automatically). Re-attach the Bag on any server to reach them again.

bag-of-holdingappsstoragecold-data