Cloud VPS from $1.98/mo · pay with Bitcoin, Ethereum, Monero, USDT or Solana · paid in crypto
Cloud and hosting

Block, file or object storage: which one your app needs

Block, file and object storage compared: how each addresses data, what each does well, commands to use them from a Linux VPS, and which to pick per workload.

CloudSat teamNovember 18, 20266 min read
Abstract illustration of three stacks side by side, one of tight square blocks, one of nested folders, one of loose glowing spheres with small labels
On this pageThree ways to ask for data

Block, file and object storage can sit on the same NVMe drives in the same rack. What separates them is how a program asks for data: by block number, by path, or by key over HTTP. That one difference decides how fast each answers, how many servers can share it, and which applications can run on it at all. Pick by the question your application asks, not by price per GB alone.

Three ways to ask for data

Block File Object
Addressed by Block numbers on a device Paths in a directory tree Keys in a flat bucket
Reached through The kernel, as /dev/vda NFS or SMB over the network HTTP, usually the S3 API
Shared between servers One server at a time Many clients at once Any number of clients
Changes Any byte, in place Any byte, with locks Whole objects replaced
Good at Low latency, small random writes Shared folders that behave like local ones Huge amounts of data, cheap and durable
Typical use Boot disks, databases Team shares, legacy apps Backups, media, static assets, logs

Block storage: a disk the operating system owns

Block storage hands the operating system a raw device and lets it do everything else. The OS puts a filesystem on top, caches what it reads and writes any block in place. That is why databases want it: a transaction commit is a small synced write, and block storage on local NVMe answers that faster than anything reached over a network.

The boot disk of a VPS is block storage. If your provider attaches a second volume, preparing it takes four commands. Check the device name with lsblk first, because mkfs erases whatever it is pointed at:

lsblk -o NAME,SIZE,TYPE,MOUNTPOINT
sudo mkfs.ext4 -L data /dev/vdb
sudo mkdir -p /srv/data
echo 'LABEL=data /srv/data ext4 defaults,nofail 0 2' | sudo tee -a /etc/fstab
sudo mount -a && df -h /srv/data

The limit is sharing. An ordinary filesystem such as ext4 or XFS assumes it is the only writer, and mounting it read-write on two servers at once corrupts it. If two servers need the same files, you want file or object storage instead.

File storage: shared paths over the network

File storage exports a directory tree that several machines mount as if it were local. Linux servers usually speak NFS; Windows and mixed offices speak SMB. Applications need no changes, because they still open, lock and rename files by path.

A minimal NFS share between two Linux servers looks like this. On the server holding the files (198.51.100.20):

sudo apt install -y nfs-kernel-server
sudo mkdir -p /srv/share
echo '/srv/share 198.51.100.21(rw,sync,no_subtree_check)' | sudo tee -a /etc/exports
sudo exportfs -ra
sudo ufw allow from 198.51.100.21 to any port 2049 proto tcp

On the client (198.51.100.21):

sudo apt install -y nfs-common
sudo mkdir -p /mnt/share
sudo mount -t nfs4 198.51.100.20:/srv/share /mnt/share

Plain NFSv4 does not encrypt traffic, so never expose it to the whole internet. Allow only the client's address, as above, and between data centers run it inside a WireGuard tunnel. For Windows clients, Samba serves a directory over SMB on port 445, which deserves the same address restrictions. Expect every operation to cost a network round trip: file storage suits documents and uploads, and suits databases poorly.

Object storage: buckets, keys and HTTP

Object storage drops the directory tree. Each object is a blob of bytes plus metadata, stored under a key in a bucket, and read or written whole with HTTP requests. The S3 API has become the common language, spoken by hosted services and self-hosted servers alike.

That design has consequences worth knowing before you build on it:

  • No edits in place. Changing one byte means uploading the object again. Large files go up in parts with multipart uploads.
  • No real folders or renames. A "folder" is a shared key prefix, and a rename is a copy followed by a delete.
  • Features built for keeping data. Versioning keeps old copies after overwrites, lifecycle rules expire or move old objects, and object lock, where supported, makes a backup undeletable for a set period, which is a strong defense against ransomware.
  • Scale without planning. Buckets grow without resizing anything, and many clients can read in parallel.

rclone is the most convenient client from a server. Create a remote once (the interactive rclone config keeps keys out of your shell history), then copy and list:

rclone config create offsite s3 provider=Other endpoint=https://s3.example.net \
  access_key_id=YOUR_KEY secret_access_key=YOUR_SECRET
rclone copy /var/backups/db offsite:company-backups/db --progress
rclone ls offsite:company-backups

To run object storage yourself, Garage (AGPL-3.0) is light enough for a few small servers spread across sites, and SeaweedFS (Apache-2.0) scales further and also offers file access. Ceph's RADOS Gateway suits teams already running Ceph. MinIO's open-source edition stopped shipping binaries in late 2025 and then moved to maintenance mode, which makes it a poor base for a new deployment.

How a VPS fits in

A VPS gives you block storage by default: its disk is fast, private and tied to that one server. Keep the operating system, databases and anything latency-sensitive there. Add file storage when several servers must see the same paths, and object storage for data that only grows: backups, media libraries, exports and archived logs. CloudSat servers run on pure NVMe storage, and storage VPS plans from $2.78/mo make a reasonable home for a self-hosted object store or a backup target in a second region.

Pick per workload

Workload Best fit Why
PostgreSQL, MySQL, MongoDB Block Synced small writes need low latency
One web server with user uploads Block Simplest, with uploads included in backups
Several app servers sharing uploads Object, or a file share Every server must see the same files
Office shared drives File (SMB), or a sync app such as Nextcloud People expect folders and locks
Backups and archives Object, with versioning Cheap at scale and hard to destroy by mistake
Static assets behind a CDN Object Served over HTTP already
Virtual machine disks Block The hypervisor needs a device

Mistakes that cost data or speed

  1. A database on network storage. Running one on NFS, or on an object bucket mounted with a FUSE tool, invites corruption and slow commits. Give databases block storage and back them up with dumps.
  2. Treating a bucket like a disk. Scripts that rename or append to objects in a loop turn every step into a full upload.
  3. Shares open to the internet. NFS and SMB ports should only accept known addresses.
  4. One copy called a backup. Replication inside one storage system copies mistakes too. Keep a separate, versioned copy.

FAQ

Can I mount object storage as a folder?

Yes, with rclone mount or s3fs, and it works well for browsing archives or serving media read-mostly. It is a translation layer, not a filesystem, so keep databases and write-heavy applications off it.

Is object storage slower than block storage?

Each request has more latency, because it travels over HTTP. Total throughput can still be high when many objects move in parallel, which is why object storage handles backups and media well.

Which type is cheapest per GB?

Object storage usually is at large sizes. With hosted services, also count request fees and egress, which can exceed the storage itself for data that is read often.

Does a single WordPress site need object storage?

No. One server with its uploads on local disk and a nightly off-site backup is simpler and fast. Object storage starts to pay off when several web servers must share the same media, or when the media library outgrows the server's disk.

Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.