Independent testing Checked regularly Curated self-hosting guides 5 VPS providers tested

guide

Self-Host Nextcloud on Hetzner: Storage and Backup Plan

Deploy Nextcloud AIO on Hetzner Cloud with a clear storage choice, firewall rules and a backup plan that also covers attached Volumes.

Nextcloud hosting architecture with a cloud server, separate live storage and an encrypted remote backup

Short answer

Choose the storage and recovery design before you create the Nextcloud 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.

DesignChoose it whenMain recovery limitRequired backup decision
Server diskThe data fits on the server and you value the simplest layoutDeleting or losing the server can affect the app and data togetherEnable server Backups if useful, then keep an AIO backup outside the server
Server plus Cloud VolumeFile storage needs to grow separately from computeHetzner server Backups and Snapshots exclude attached VolumesSend the encrypted AIO Borg backup to a separate target and test a restore
Storage ShareYou want managed Nextcloud-based file sharing instead of server administrationIt is a different product, not a self-hosted Cloud serverUse 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:

  1. Cloud server Backups are daily copies of the server disk, with seven Backup slots.
  2. 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:

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:

  1. Select a location close to the people who will use the instance and consistent with your data-location requirements.
  2. Choose a current 64-bit Linux image supported by Docker and Nextcloud AIO.
  3. Add an SSH key during server creation.
  4. Decide whether the Nextcloud data directory stays on the server disk or uses a Cloud Volume.
  5. Enable Hetzner Backups only after understanding which disk they cover.
  6. 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:

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:

  1. enter the final Nextcloud hostname;
  2. enable only the optional containers you need;
  3. store the AIO passphrase in a password manager;
  4. confirm the data directory before uploading files;
  5. 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:

  1. create an AIO backup before a container update;
  2. verify the backup integrity from the AIO interface;
  3. provision a temporary replacement server;
  4. restore the archive with the saved key;
  5. sign in and open a sample file;
  6. 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

Sources checked

The architecture and product facts were checked on 25 November 2026:

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.