Short answer
Choose the storage and recovery design before you create the Nextcloud server.
- Use the server’s own disk when the data set is small enough to stay there and simple recovery matters most.
- Add a Hetzner Cloud Volume when storage must grow independently, but treat it as live storage, not as a backup.
- Choose Hetzner Storage Share instead when you want a managed Nextcloud-based service and do not need control of the server.
For a self-hosted deployment, this guide uses Nextcloud All-in-One, the official container-based installation path. It avoids the stale package list and incomplete manual PHP setup that used to appear on this page.
| Design | Choose it when | Main recovery limit | Required backup decision |
|---|---|---|---|
| Server disk | The data fits on the server and you value the simplest layout | Deleting or losing the server can affect the app and data together | Enable server Backups if useful, then keep an AIO backup outside the server |
| Server plus Cloud Volume | File storage needs to grow separately from compute | Hetzner server Backups and Snapshots exclude attached Volumes | Send the encrypted AIO Borg backup to a separate target and test a restore |
| Storage Share | You want managed Nextcloud-based file sharing instead of server administration | It is a different product, not a self-hosted Cloud server | Use the managed snapshot and restore controls documented for Storage Share |
This is a source-backed architecture decision, not a performance benchmark. We did not run a controlled workload test, so the page does not claim one universal server size or throughput result.
The important Hetzner backup boundary
Hetzner documents two facts that must be read together:
- Cloud server Backups are daily copies of the server disk, with seven Backup slots.
- Cloud server Backups and Snapshots do not include attached Cloud Volumes.
That second point changes the correct design. A Volume can expand from 10 GB to 10 TB and Hetzner stores its blocks across three physical servers, but replication is not a user-restorable backup. If the Nextcloud data directory lives on a Volume, the recovery plan must cover that Volume separately.
Nextcloud AIO includes encrypted Borg backups and supports a remote Borg repository. Save the encryption key outside the VPS. A backup that has never been restored is still an assumption, so schedule a test restore to a disposable server before relying on it.
Do not choose a plan from a fixed RAM claim
The old version of this page recommended one CPU core and 2 GB of RAM for a basic installation. Nextcloud’s current system requirements do not support a universal total like that. Memory demand varies with the number of users, installed apps, stored files and activity.
Size the server from the features you will actually enable:
- Files and calendar only need a different budget from Office, Talk, full-text search or antivirus.
- Preview generation and concurrent uploads can create short CPU and memory peaks.
- The database, Redis, web process and optional AIO containers all share the host.
- Storage growth, backup duration and restore time may become the limit before CPU.
Start with enough headroom for the selected AIO containers, watch memory, CPU, disk latency and free space, then resize from measurements. Check the current configuration and checkout price directly rather than copying a price that will age.
Check current Hetzner Cloud options
1. Create the server around the recovery plan
In Hetzner Console:
- Select a location close to the people who will use the instance and consistent with your data-location requirements.
- Choose a current 64-bit Linux image supported by Docker and Nextcloud AIO.
- Add an SSH key during server creation.
- Decide whether the Nextcloud data directory stays on the server disk or uses a Cloud Volume.
- Enable Hetzner Backups only after understanding which disk they cover.
- Attach a Cloud Firewall before exposing the service.
Hetzner Cloud Firewalls are stateful. New inbound traffic is dropped unless an allow rule matches it. Allow SSH only from a trusted source range where practical. Open the public Nextcloud and optional Talk ports required by the current AIO documentation, not a broad range copied from an unrelated stack.
The AIO documentation lists 443/TCP for Nextcloud. It lists 443/UDP only when HTTP/3 is enabled, and 3478/TCP plus 3478/UDP only for the Talk TURN server. Keep the AIO management interface private or tightly restricted.
2. Set DNS before the first AIO setup
Create a dedicated hostname such as cloud.example.com and point it to the server. Nextcloud AIO expects a domain for the normal public deployment. Do not build the installation around a temporary IP address and plan to repair the domain later.
If another service already uses port 443, choose a supported reverse-proxy layout. The reverse proxy decision guide explains when Caddy, Nginx Proxy Manager or Traefik is the better fit. Follow the current AIO reverse-proxy documentation for the actual port and network settings.
3. Mount storage before choosing the data directory
When using a Cloud Volume, attach and mount it before the first Nextcloud AIO configuration. Hetzner’s automatic option formats and mounts a Volume under a path based on its Volume ID. Confirm the real mount path with findmnt and lsblk instead of assuming it.
Before pointing Nextcloud at that path:
- confirm the filesystem is mounted after a reboot;
- restrict ownership and permissions to the required service;
- record the Volume ID and mount path in the recovery notes;
- create a separate backup target;
- document how the replacement server will attach and mount the Volume.
Nextcloud AIO allows a custom data directory, but its documentation says that choice must be supplied at the first startup. Changing it after the instance contains data is a migration, not a harmless configuration edit.
4. Use the official Nextcloud AIO installation
Install Docker from Docker’s current instructions for the chosen operating system. Then use the current command or Compose example from the Nextcloud AIO repository.
Do not reuse an old article’s Apache, MariaDB and PHP package list. That path can silently select unsupported versions and leaves caching, database settings, updates and backup integration for you to assemble. AIO manages the required containers and exposes one administration interface for the initial setup and updates.
During setup:
- enter the final Nextcloud hostname;
- enable only the optional containers you need;
- store the AIO passphrase in a password manager;
- confirm the data directory before uploading files;
- complete the built-in configuration checks.
If you place a reverse proxy on the same host, the AIO documentation shows how to bind the Apache container to localhost. Do not expose an internal application port merely because it appeared in an example.
5. Build two independent recovery paths
Use the Hetzner server Backup as a fast infrastructure recovery option for the server disk. Then configure the AIO Borg backup to a target outside that server.
The AIO backup covers the database, files and configuration needed to restore the instance. It can write directly to a remote Borg repository. The encryption key is required for recovery, so keeping the archive and losing the key is equivalent to losing the backup.
Record and test these actions:
- create an AIO backup before a container update;
- verify the backup integrity from the AIO interface;
- provision a temporary replacement server;
- restore the archive with the saved key;
- sign in and open a sample file;
- delete the temporary server after documenting the result.
If the data directory is on a Cloud Volume, confirm that the AIO backup actually includes it. AIO warns that files mounted through Nextcloud’s external storage app are not automatically part of the normal backup unless they are added separately.
6. Decide whether self-hosting is still the right product
Self-hosting on Hetzner Cloud is a fit when you need operating-system control, custom containers, your own backup target or a specific network design. It also means you own updates, monitoring, capacity and restores.
Hetzner Storage Share is based on Nextcloud and provides a managed file-sharing service with user and group administration. Hetzner says Storage Share snapshots are created several times per day. Choose that product when the application matters more than controlling the host. Do not call it self-hosting in an architecture document because the operational responsibilities are different.
Launch checklist
- Final domain points to the intended server
- SSH key works and password login policy is reviewed
- Firewall exposes only the selected AIO features
- Data directory is on the intended disk or Volume
- Server Backup scope is documented
- Remote AIO Borg backup completes
- Encryption key is stored outside the VPS
- Restore test succeeds
- Nextcloud admin warnings are reviewed
- Updates are preceded by a current backup
Sources checked
The architecture and product facts were checked on 25 November 2026:
- Nextcloud All-in-One documentation
- Nextcloud AIO reverse-proxy documentation
- Nextcloud system requirements
- Hetzner Cloud server creation
- Hetzner Cloud Volumes
- Hetzner Cloud Backups and Snapshots
- Hetzner Cloud Firewall rules
- Hetzner Storage Share comparison
Provider features and checkout prices can change. Recheck the linked documentation before deploying or ordering.
Frequently asked questions
Is a Hetzner Cloud Volume a backup for Nextcloud?
No. A Volume is live block storage. Hetzner states that server Backups and Snapshots do not include attached Volumes. Keep a separate backup that includes the Nextcloud data, database and configuration, then test restoring it.
How much RAM does Nextcloud need on Hetzner?
Nextcloud does not publish one total RAM figure that fits every deployment. Its documentation says memory demand varies with users, apps, files and activity. Start from the features you will enable, monitor the real workload and resize when measurements justify it.
Are Hetzner server Backups enough for Nextcloud?
They are useful for the server disk, but they are not a complete recovery plan when data is on an attached Volume. Nextcloud AIO supports encrypted Borg backups, including remote repositories. Keep the recovery key separately and run a restore test.
Is Hetzner Storage Share the same as self-hosting Nextcloud?
No. Storage Share is a managed filesharing service based on Nextcloud. A Hetzner Cloud server gives you control of the operating system, containers, updates and backup design, but it also makes those tasks your responsibility.