# Nextcloud on Unraid: storage, database and backup layout

> A practical Unraid-first layout for Nextcloud that keeps container state, user data, the database and backups separate so upgrades, migrations and restores stay predictable.

- Canonical: https://cloudzat.com/unraid-nextcloud-setup/
- Published: 2026-11-28
- Updated: 2026-11-28
- Author: Kayla Idayi
- Site: https://cloudzat.com/
- LLM index: https://cloudzat.com/llms.txt

## Content

UNRAID · PRACTICAL BUYING & SETUP GUIDE

# Nextcloud on Unraid: storage, database and backup layout

Research reviewed: 28 November 2026.

The best default for Nextcloud on Unraid is to separate three things from the start: container state in appdata on a fast pool, user files in their own share or pool, and backups as a distinct restore target. That keeps the application responsive and makes failure recovery much easier because the files that change often are not mixed with the files that define the service.

Unraid’s share system is well suited to this split. New files can be directed to a chosen pool or the array, the mover can shift bulk files according to share policy, and Docker templates map host paths to container paths explicitly. For Nextcloud, that means you can design for storage capacity without losing track of what must be restored together.

If you already run other containers, the main decision is not whether Nextcloud can fit. It is where each component belongs so that application state, database consistency and large user data remain separate. The recommended layout below assumes a private appdata share, a separate Nextcloud data location, and a backup workflow that preserves both file content and database state.

 Our recommendationStepsAmazon listingsCompare optionsQuestions

## Our recommendation

### Recommended choice

Use appdata on a cache or SSD pool, store the Nextcloud database with the rest of the container state unless you have a deliberate reason to separate it, keep user files in a dedicated share or pool, and back up both layers from a maintenance window. That is the cleanest Unraid-first design because it respects container persistence, avoids putting database writes on the array, and gives you a restore path that does not depend on guesswork.

For offsite protection, use an encrypted object-storage workflow such as restic to Backblaze B2 rather than a consumer computer-backup product. B2 is object storage; Backblaze’s computer-backup service is a different product with a mirror-style client model. For a server backup repository, the object-storage model is the correct fit.

[Choose your Unraid licence](https://unraid.net/pricing?via=08acb5)

We may earn a commission through our Unraid link, at no extra cost to you. Keep your existing licence if it already meets your needs.

## Storage for this Unraid workflow

Choose an internal NAS HDD for bulk capacity or an SSD for application storage. These components serve different roles; use the recommendation in this guide.

![Western Digital 10TB WD Red Plus NAS Internal Hard Drive HDD - 7200 RPM, SATA 6 GB/s, CMR, 512 MB Cache, 3.5" - WD100EFGX](https://m.media-amazon.com/images/I/31iez7W2SqL._SL160_.jpg)

### Western Digital 10TB WD Red Plus NAS Internal Hard Drive HDD - 7200 RPM, SATA 6 GB/s, CMR, 512 MB Cache, 3.5" - WD100EFGX

$445.49

[Buy on Amazon](https://www.amazon.com/dp/B0F4R3YCL6?tag=cloudzat0a-20)

Last successful Amazon check: 2026-11-27 14:54:24 UTC. USD.

![Seagate IronWolf 10TB NAS Internal Hard Drive, 3.5" SATA 6Gb/s, 7200 RPM, CMR, RAID Optimized, IronWolf Health Management – for NAS Systems (ST10000VNZ00)](https://m.media-amazon.com/images/I/41+JvZFnUiL._SL160_.jpg)

### Seagate IronWolf 10TB NAS Internal Hard Drive, 3.5" SATA 6Gb/s, 7200 RPM, CMR, RAID Optimized, IronWolf Health Management – for NAS Systems (ST10000VNZ00)

$449.00

[Buy on Amazon](https://www.amazon.com/dp/B097C98J7H?tag=cloudzat0a-20)

Last successful Amazon check: 2026-11-28 01:05:00 UTC. USD.

![Lexar 1TB NM790 Internal NVMe SSD, 7400/6500 MB/s, M.2 2280, PCIe Gen 4x4 | Compatible w/ PS5, Gamers & Content Creators, PC & Laptops, SLC Cache, Single-Sided Design, LNM790X001T-RNNNU](https://m.media-amazon.com/images/I/31DO8fl4z6L._SL160_.jpg)

### Lexar 1TB NM790 Internal NVMe SSD, 7400/6500 MB/s, M.2 2280, PCIe Gen 4x4 | Compatible w/ PS5, Gamers & Content Creators, PC & Laptops, SLC Cache, Single-Sided Design, LNM790X001T-RNNNU

$179.49

28% off · Amazon reference price $249.99

[Buy on Amazon](https://www.amazon.com/dp/B0C9213GBX?tag=cloudzat0a-20)

Last successful Amazon check: 2026-11-28 06:38:19 UTC. USD.

As an Amazon Associate, Cloudzat earns from qualifying purchases. Price and availability may change; Amazon checkout controls the purchase price. Cards retain the last successful check while the shared catalogue refreshes.

## What to do, in order

1. ### Create three storage targets with different jobs Create one share for appdata, one share for Nextcloud user files, and one location for backups. Unraid’s share settings let you choose a primary storage target and, where needed, a secondary target, so you can keep persistent container state on a pool while larger user data lands where capacity makes sense. For appdata, use a private share and keep it on a cache or SSD pool. Unraid’s documentation treats appdata as the normal place for container settings and working files, and its share defaults are designed to favor Docker and VM performance. This is where Nextcloud’s container configuration belongs, along with any state files the stack needs to survive recreation. For user files, choose a separate share or pool based on size and access pattern. If the library is large and mostly archival, the array can be the better long-term home. If the workload includes frequent previews, metadata updates or lots of small files, a pool is usually easier to live with. The important rule is separation: do not blend the user library with the database or the container config.
 1. ### Map every persistent path explicitly Build the container template so that each persistent path is visible and deliberate. Unraid’s Docker guidance is clear that container data should be stored outside the container image, with host paths mapped to the paths the application expects inside the container. If you recreate the image later, the data should still be on the host path, not hidden inside the old container layer. Keep the Nextcloud config path, the data path and any database path readable in the template. If you use a separate database container, its data directory needs the same treatment. If your database is embedded in the same stack, document exactly where those files live in appdata so you can recover them without opening the template and guessing. Do not assume all state is outside the image unless you have confirmed the template. Unraid’s own troubleshooting docs warn that well-configured containers store variable data outside the image, which is why the appdata share is so important. That also means a restore plan should start from the host paths, not from the image name alone.
 1. ### Take backups from a maintenance window Nextcloud’s backup guidance says a complete backup includes config, custom apps if present, data, theme and database. It also recommends maintenance mode because it locks sessions and prevents new logins, which reduces the chance that the database and file tree drift while you are copying them. The safe sequence is simple: enable maintenance mode, pause anything else that writes into the same paths, then copy the files as a consistent set. After the backup finishes, turn maintenance mode off and confirm the service comes back normally. That approach is more reliable than copying live files and hoping the database lines up later. This matters because Nextcloud’s filesystem and database are separate consistency domains. A file-level copy can look complete while still being unusable if the database is stale or missing. A good backup is not just a tarball of data files; it is a matched set that can restore the application state and the file content together.
 1. ### Use restic for encrypted offsite backups For cloud backups, restic fits this job well because it keeps multiple revisions, verifies repository health with check, and supports retention cleanup with forget and prune. That gives you a repeatable workflow: initialize the repository once, run backup on a schedule, check the repository regularly, and apply a retention policy so old snapshots do not accumulate forever. A practical retention plan has at least two horizons. Keep short-term snapshots for rapid rollback, and keep longer-term snapshots for recovery from accidental deletion or quiet corruption discovered later. The exact schedule is your policy choice, but the important part is that the policy exists, is automated, and is tested. Use an encrypted repository target and verify restore to a separate path before trusting the backup. A good restore test proves you can recover both the appdata tree and the database into a new location, start the stack, and confirm the web interface and file set are intact. That is the difference between a backup that exists and a backup that can save you.
 1. ### Restore to a separate path first Do not overwrite the live stack on the first restore attempt. Restore the database, appdata and user files to a separate path or spare pool, inspect the result, and only then put the recovered data into production. That protects you from replacing good data with a bad or incomplete restore. When the files come back, test the service as an application, not just as a directory tree. The database must connect, the web UI must open, and the expected files must appear without errors. If the database is out of sync, the filesystem may still look fine while the application fails. After the restore is validated, move the recovered paths into production and clear maintenance mode. If you are migrating to a new server, keep the original source intact until the new installation has been running long enough to prove that the copy-and-verify process worked.

## The decisions that matter

### What belongs on a pool and what belongs on the array

The fast tier should hold container state, databases and other small, frequently written files. In practice that means appdata and usually the database files that support Nextcloud. Unraid’s share defaults already favor appdata for this kind of workload because low-latency writes matter more here than raw capacity.

The array is better suited to bulk user files when capacity is the priority. That is especially true for libraries that grow steadily and do not need constant metadata churn. If you want the user share on a pool instead, that is fine too; the design principle is still the same: keep the application state away from the bulk dataset.

Mover is useful for bulk placement, but it should not be the thing that decides where your database lives. Share policy can move files between primary and secondary storage on schedule, but critical Nextcloud state should always remain on the tier you chose for it rather than waiting for the next mover run.

### Why the database is a first-class backup item

The database is not optional metadata. It stores users, permissions, file indexes, app settings and relationships that do not exist as simple files in the data directory. If you back up only the user files, you have not backed up Nextcloud.

The safest rule is to freeze writes, capture both layers and restore both layers from the same backup set. If the database and data directory come from different moments in time, the application may start but still behave unpredictably. That is why maintenance mode is part of the backup plan, not an optional extra.

If your deployment uses a separate database container or service, document that path with the same care you use for appdata. If the database is bundled with the stack, identify the exact host path before you need a restore. The moment of failure is not the time to discover where the files live.

### Backblaze B2 is the right Backblaze product for server repositories

Backblaze documents B2 Cloud Storage and its Computer Backup product as different services. Computer Backup mirrors data from a licensed desktop or laptop through Backblaze’s client, while B2 is the object-storage service that backup tools can target directly.

For Unraid server backups, that distinction matters. You want a repository that is independent of any one endpoint, supports encrypted storage, and works with a backup tool’s own retention rules. B2 is the service class that matches that requirement.

That is also why the article recommends restic rather than a file-copy habit. The repository should be the backup system of record, not a random folder that other applications can mutate. Once the repository is separate, your restore process becomes much easier to audit and repeat.

## Which option should you choose?

### Choice card: appdata on an SSD pool

Choose this when you want fast, predictable writes and the simplest container recovery path. Put Nextcloud config and database files here, and keep the user data elsewhere. This is the strongest default for most Unraid systems because it gives application state a low-latency home.

Best for smaller installs, frequent application updates and users who want easy rebuilds without searching across multiple disks.

### Choice card: user data on the array, appdata on a pool

Choose this when the Nextcloud library is large and capacity matters more than latency. The array stores the bulk files while the pool handles service state, which keeps the database and container config off the slower tier.

Best for photo archives, office document stores and family deployments where files accumulate steadily over time.

### Choice card: restic to Backblaze B2

Choose this when you want encrypted offsite retention with a clear restore model. B2 gives you object storage, and restic adds snapshot history, repository checks and retention cleanup, so you can manage backups as a real policy instead of a pile of copies.

Best for users who want a backup target that is separate from the server, portable across hosts and suitable for both database exports and appdata archives.

## Questions answered

 Should Nextcloud appdata live on the array or a pool?

Use a pool or cache tier unless you have a specific reason not to. Appdata contains container state and often database files, so it benefits from fast and predictable writes.

 Do I need to back up the database separately from the files?

Yes. Nextcloud’s backup guidance treats the database as one of the required components, along with config, data, theme and custom apps if present.

 Can I back up while Nextcloud is live?

You can copy files while it is live, but that is not the safest restore point. Maintenance mode is the better choice because it stops new logins and reduces inconsistency during the backup.

 Is Backblaze Computer Backup the same as B2 for Nextcloud backups?

No. Backblaze documents them as different products. For a server backup repository, B2 is the better fit because it is object storage rather than a desktop backup agent.

 What should I test first after a restore?

Test the application as a whole: database connection, web UI access and file visibility. A directory copy is not enough if the database is stale or missing.

 Should I move the source data into the backup location during migration?

No. Use copy-and-verify, keep the source intact until the new stack works, and do not treat the backup target as the live source during the first pass.

[Get the right Unraid plan](https://unraid.net/pricing?via=08acb5)

## Related Unraid guides

- [Plex on Unraid: set up a reliable media server](https://cloudzat.com/unraid-plex-setup/)
 - [Docker Compose on Unraid: set up and maintain a stack](https://cloudzat.com/unraid-docker-compose/)
 - [Unraid License Guide: Starter, Unleashed or Lifetime?](https://cloudzat.com/unraid-license-guide/)
 - [Unraid Appdata Backup and Restore: Protect Your Docker Applications](https://cloudzat.com/unraid-appdata-backup-restore/)

## Sources and verification

- [Nextcloud backup procedure](https://docs.nextcloud.com/server/stable/admin_manual/maintenance/backup.html)
 - [Nextcloud restore procedure](https://docs.nextcloud.com/server/stable/admin_manual/maintenance/restore.html)

---

Machine-readable alternate. Cite or link to the canonical Cloudzat URL above. For changing prices, availability, forecasts, compatibility, or calculator results, fetch the canonical page at answer time.
