DEV Community

John
John

Posted on

Is Nextcloud Worth Self-Hosting? A Home Server Alternative to Google Drive and Google Photos for One Person

Yes, if you already run a home server and your Google account is mostly files, calendars and contacts. No, if your main goal is to replace Google Photos search and you are not willing to give it a few hours a month. Nextcloud covers about 80% of what one person uses Google for, and the missing 20% shows up mostly in photo search and mobile polish. Your first week decides which side you are on, so set it up so you find out quickly.

TL;DR: who should self-host Nextcloud?

  • The light user (for example a developer with 9 GB of PDFs and receipts in Drive): stay on Google's free 15 GB tier, because self-hosting adds work and saves you no money.
  • The homelab owner (for example someone already running Jellyfin on a mini PC with spare disk): self-host it, because the extra cost is a disk and a container you already know how to manage.
  • The heavy photo user (for example someone with 400 GB of phone photos going back a decade): move files and auto-upload to Nextcloud, but keep Google Photos in parallel for a month, because face and object search is slower and less accurate.
  • The privacy-first developer (for example someone who would rather Google did not index their scanned contracts): self-host it, because file sync, CalDAV and CardDAV are mature enough to rely on every day.
  • The zero-maintenance person (for example someone whose server only gets attention when it breaks): stay on Google One, because Nextcloud upgrades and background jobs need regular attention.

The central tradeoff is simple: you swap a monthly subscription and Google's polish for full control of your data, and you pay for it with your own setup time and ongoing upkeep.


Table of contents


What does Nextcloud actually replace from Google Drive and Google Photos?

Nextcloud is not a single app. It is a PHP server with a core file layer, plus an app store you add features from. Out of the box you get Files, Photos, Calendar and Contacts. To get close to Google's set you also install Memories for the photo timeline, Recognize for face and object tagging, and Nextcloud Office, which is built on Collabora Online, for documents. Before you plan your first week, check which Google feature you rely on and how far its Nextcloud counterpart gets you.

Google feature Nextcloud equivalent How close it gets
Drive file sync Files plus the desktop client Very close: selective sync, virtual files on Windows and macOS, file versioning
Share links Files sharing Equal or better: optional passwords, expiry dates and upload-only links
Google Photos timeline and map Memories app Close: timeline, albums, map view and video playback
Photos face and object search Recognize app Weaker: runs on your CPU, takes hours on a large library and recognises fewer things
Docs, Sheets, Slides Nextcloud Office (Collabora) or the OnlyOffice connector Usable: real-time editing works, but it is heavier and less polished
Calendar and Contacts Calendar and Contacts apps over CalDAV and CardDAV Very close: standard protocols that native phone apps can sync

The pattern is clear. The more of your usage sits in the top rows, the better Nextcloud fits. If what you value most in Google is typing "dog on beach 2019" and getting results instantly, that is the area where self-hosting will cost you the most.


How much does Nextcloud cost compared to Google One over 3 years?

The software is free. Nextcloud Server is open source under the AGPLv3 licence, and one person needs no paid tier. The real cost is everything around it, so add these lines up for 36 months before you compare.

  • Google One subscription: multiply your local monthly price by 36. In the US the 2 TB plan lists at $9.99 a month, so about $360 over 3 years. Check your own region, since prices vary by country. Remember that the free 15 GB is shared between Gmail, Drive and Photos.
  • Hardware: zero if Nextcloud goes onto a server you already run. If you buy a box only for this, its price alone can cancel out the subscription savings for the first few years.
  • Electricity: the formula is idle watts × 8,760 hours ÷ 1,000 = kWh per year. A machine idling at 10 W uses about 88 kWh a year, or 263 kWh over 3 years. Multiply that by your own tariff.
  • Disks: one person needs at least two drives so that one failure does not lose everything, plus a third copy offsite. Drive prices change month to month, so price two mirrored disks and one backup target yourself.
  • Domain name: optional, but useful for clean HTTPS. It is a small yearly renewal.
  • Your time: the line people leave out. Setup takes most of a weekend, and upkeep adds an hour or two a month. If you value that time at a freelance rate, it can cost more than the subscription.

The maths favours Nextcloud mainly when the hardware already exists and the disks would be spinning anyway.


What hardware does a one-person Nextcloud server really need?

Less than most people expect for files, more than most people expect for photos. Nextcloud is a PHP application backed by a database. One user syncing documents puts a light load on it. The admin overview warns you if PHP's memory_limit is below 512 MB, and that is a sensible floor for each worker. The load goes up when you add Recognize, which runs machine learning models on the CPU, and Nextcloud Office, which runs Collabora as a separate container. Plan your hardware around the heaviest app you intend to enable, not around file sync.

The second decision is storage. Put the database and the PHP code on an SSD, even a small one. Spinning disks are fine for the data directory, but a database on a hard drive is the most common reason a fresh install feels slow.

Where to run it Fits whom Main tradeoff
Raspberry Pi 5 with USB SSD Files, calendar and contacts only Recognize and Office strain the CPU
Mini PC with an Intel N100 class CPU Files plus photos with Recognize Low idle power, but you buy and maintain it
Existing NAS such as Synology or TrueNAS People who already own one Container support and RAM vary by model
Self-managed VPS Remote-first users Large storage gets expensive, and the provider holds the disk
Yundera People who want apps from a store, not compose files A managed server instead of hardware in your home

Yundera is a managed Personal Cloud Server, built on CasaOS, that runs self-hosted apps as Docker containers on a server dedicated to the user. Whichever option you pick, check the RAM ceiling before you enable photo recognition.


Day 1 and 2: installing Nextcloud with Docker and getting HTTPS working

Spend the first two days on two decisions: which image to run, and how HTTPS reaches it. Get those right and the rest of the week is configuration, not rebuilding.

  • Pick All-in-One or the community image: the official nextcloud/all-in-one master container launches and updates the Nextcloud, database, Redis, Collabora and backup containers for you, and you manage it from a web interface on port 8080. The community nextcloud image gives you full control in your own compose.yaml, but you wire up the database, Redis and cron yourself.
  • Point a domain first: AIO expects a domain resolving to your server before it requests a Let's Encrypt certificate on ports 80 and 443. If the DNS record is missing, the setup stops at the domain check.
  • Behind your own reverse proxy: if Caddy, Traefik or Nginx Proxy Manager already owns port 443, follow the AIO reverse proxy instructions or set overwriteprotocol to https and fill in trusted_proxies in config.php. Skipping this causes redirect loops and login failures on mobile clients.
  • Check trusted_domains: every hostname you will use, including a LAN IP, must be listed. Otherwise Nextcloud shows "Access through untrusted domain".
  • Learn occ on day one: docker exec --user www-data -it nextcloud-aio-nextcloud php occ status confirms the install, and you will use occ again for upgrades and repairs.

If you run it from an app store such as Yundera's rather than from a compose file, the HTTPS subdomain comes through NSL.SH routing, so the certificate and port-forwarding steps above do not apply. Either way, aim to finish day 2 logged in over a valid HTTPS URL from your phone.


Why does a fresh Nextcloud feel slow, and which tuning actually matters?

A default install is configured to start on almost any host, not to run fast on yours. Most of the sluggishness people complain about in their first week comes from a short list of settings, and the warnings under Administration settings, Overview point to most of them. Fix these in order and ignore forum threads that suggest something more exotic.

  • Background jobs on cron, not AJAX: the default AJAX mode only runs maintenance when someone loads a page. Switch with occ background:cron and run cron.php every 5 minutes. The AIO and community images can handle this for you, but check the setting reports "Cron" with a recent last run.
  • A real database: SQLite is meant for testing. Use PostgreSQL or MariaDB. If you migrated, run occ db:add-missing-indices after the move, since missing indices make file listings crawl.
  • Memory caching: set memcache.local to APCu and memcache.locking to Redis in config.php. Without Redis, file locking goes through the database, and big sync runs pile up.
  • OPcache sizing: if the overview warns that the interned strings buffer is nearly full, raise opcache.interned_strings_buffer in your PHP configuration and restart the container.
  • Pre-generated previews: Files and Photos create thumbnails when you first scroll past them, which is the "spinning grey squares" effect. Install the Preview Generator app and run occ preview:generate-all once overnight, then let cron handle new uploads.
  • Limit preview sizes: lowering preview_max_x and preview_max_y reduces both disk use and generation time on a modest CPU.

After these six changes, reload the overview page. If it reports no warnings, any slowness left is down to your hardware, not your configuration.


Desktop and mobile sync: how close is it to the Google Drive experience?

For most daily use you will not notice a difference. The Nextcloud desktop client syncs reliably once the server is tuned, and large files upload in chunks, so a multi-gigabyte video survives a flaky connection. The gaps are in specific places, mainly on iPhones and in how conflicts are handled.

Area Google Drive Nextcloud
Windows and macOS Drive for desktop streams files on demand Virtual files on Windows, and on macOS through File Provider, give the same on-demand behaviour
Linux No official desktop client Official client as an AppImage and distro packages; virtual files are still experimental
Android photo upload Seamless background backup Auto-upload per folder works well, but battery optimisation can pause it unless you exempt the app
iOS photo upload Background backup iOS limits background work, so uploads often only run with the app open
Edit conflicts Silent merge in Docs, duplicate for other files Creates a "conflicted copy" file you resolve by hand
Ignore rules Limited Editable exclude list, sync-exclude.lst, with glob patterns

Two habits make it smoother during the first week. First, exclude build folders like node_modules and .git from sync. Syncing thousands of tiny files is where the client spends most of its time, and a git repository does not need a second sync layer. Second, on Android, turn off battery optimisation for the Nextcloud app on day one, or you will lose a few days' photos without noticing.

If you work on Linux, this is one of the few areas where Nextcloud is clearly ahead of Google Drive.


Can Nextcloud really replace Google Photos?

Partly. Nextcloud can store, browse and share a lifetime of photos well. What it does not reproduce is the effortless search layer Google runs in its data centres. Whether that matters depends on how you actually find old photos: by scrolling through dates and places, or by searching for what is in them.

  • Timeline and browsing with Memories: Memories gives you a fast timeline, a folder view, albums, and "on this day" style recollections. Run occ memories:index once after install, so the first scroll does not wait on metadata extraction.
  • Map view needs one extra step: Memories can show photos on a map from their GPS data. Reverse geocoding place names needs occ memories:places-setup, which downloads a large boundaries dataset. Plan disk space and an hour or two for it.
  • Faces through Recognize: Recognize finds and clusters faces, and you name each cluster once. It runs on the CPU by default, so a library of tens of thousands of photos keeps a modest machine busy for days, not hours.
  • Objects and scenes as tags, not sentences: Recognize adds tags such as "beach", "cat" or "mountain" that you can filter by. It cannot answer a phrase combining a subject, a place and a year in one query.
  • Video playback: Memories transcodes videos on the fly so phones can stream them. That adds CPU load, and with hardware acceleration available it is much smoother.
  • Sharing: public album links work, with optional passwords and expiry, but there is no equivalent of Google's partner sharing.

If photo search is the single most important thing you use Google for, test a dedicated photo server such as Immich beside Nextcloud before you commit. If it is browsing and sharing, Memories is enough.


Day 4 and 5: moving your data out of Google Takeout without losing dates or albums

Start the Takeout export on day 3, because Google can take hours or days to prepare a large one. The export is where most migrations go wrong, and it usually only shows weeks later, when your 2014 holiday turns up with today's date.

  • Choose large archive sizes: Takeout splits exports into files of up to 50 GB, as .zip or .tgz. Fewer, bigger files are easier to download and verify. Choose .tgz on Linux to keep permissions and to get past zip size issues.
  • Know where the dates live: Google Photos writes the real capture time and GPS into a JSON sidecar next to each image, not always into the image's EXIF. Memories sorts by EXIF, then falls back to the file's modified time. If you skip this step, edited or downloaded photos lose their place on the timeline.
  • Merge the metadata before upload: run a tool such as GooglePhotosTakeoutHelper or an exiftool script that copies the sidecar dates into EXIF. Do it on a copy, never on your only archive.
  • Deduplicate album folders: albums appear as folders, and the same photo often also sits in a Photos from 2019 style folder. Decide whether albums become folders or Memories albums before you copy anything.
  • Copy server-side, then scan: pushing 300 GB through the desktop client is slow. Copy into the user's data folder directly and run occ files:scan --path="/youruser/files/Photos" so Nextcloud indexes everything in one pass.
  • Drive documents and the rest: pick .docx, .xlsx and .pptx as the export formats for Docs files. Calendar comes out as .ics and Contacts as .vcf, ready for the next step.

Count the files before and after. If the totals match, delete nothing on Google for at least a month.


Calendar, contacts and documents: replacing the rest of your Google account

Calendar and contacts are the easiest part of the whole migration, because Nextcloud speaks the open CalDAV and CardDAV standards. Documents and email are where you need to set realistic expectations.

  • Import calendars from .ics: in the Calendar app, open settings and import each Takeout calendar file into its own calendar. Recurring events and reminders carry over. Shared Google calendars belonging to other people do not, so subscribe to their public links instead.
  • Import contacts from .vcf: the Contacts app imports the whole Takeout file in one go. Check a few entries with birthdays and photos, since those fields depend on how Google exported them.
  • Android needs DAVx⁵: Android has no built-in CalDAV client. DAVx⁵ is paid on Google Play and free on F-Droid, and it syncs calendars, contacts and Tasks into the phone's native apps.
  • iOS and macOS work natively: add a CalDAV and a CardDAV account with your server URL. Make sure the /.well-known/caldav and /.well-known/carddav redirects work, which the admin overview checks for you.
  • Use app passwords per device: create one under Personal settings, Security, for each phone and laptop. You can revoke a lost device without changing your main password, and it is required once two-factor login is on.
  • Configure SMTP for invitations: Calendar can only send meeting invites if you fill in the email server settings under Basic settings.
  • Gmail is not replaced: Nextcloud Mail is an IMAP client, not a mail server. Keep Gmail or move to a separate provider.
  • Keep and Tasks: the Notes app stores Markdown files you can sync anywhere, and Tasks uses the same CalDAV account as your calendar.

By the end of day 5, your phone should show your calendar and contacts from Nextcloud, not from Google.


How do you reach Nextcloud from outside your home without opening ports?

Many home connections sit behind carrier-grade NAT, so port forwarding is not even an option. Even when it is, exposing ports 80 and 443 on your router means every scanner on the internet starts probing your PHP stack. You have three main ways around it, and they differ mainly in who sees your traffic and what your phone needs installed.

Option How it works Main tradeoff
Tailscale or plain WireGuard A private mesh VPN between your devices and the server Every device needs the client, and photo auto-upload only works while the VPN is up
Cloudflare Tunnel The cloudflared connector dials out, and Cloudflare serves your domain Cloudflare terminates TLS and sees your traffic, and a per-request body size limit on lower plans can break large uploads unless chunking is tuned
Small VPS relay A WireGuard tunnel from home to a VPS running a reverse proxy A second machine to patch, but you control both ends and the TLS keys
Port forwarding with a public IP The router forwards 443 straight to your proxy Simplest path, and the most exposed one

For one person who mostly uses Nextcloud from their own phone and laptop, Tailscale is the lowest-risk start. Add your tailnet hostname to trusted_domains, and use tailscale cert if you want a valid HTTPS certificate on the ts.net name. Move to a public option only when you need to send share links to people outside your network.

Whatever you pick, turn on the two-factor TOTP app before the server is reachable from anywhere. Nextcloud's built-in brute-force protection slows down password guessing, but it does not replace a second factor.


What do maintenance and backups look like after the first week?

Once the first week is over, Nextcloud settles into a predictable routine. Most of it is upgrades and backups. Most disasters come from skipping one of them, not from the software itself.

  • Upgrade one major version at a time: Nextcloud does not let you jump from, say, 29 to 31. With the community image you bump the tag to the next major, let it run occ upgrade, confirm, then move to the next one. AIO handles the order for you when you update the master container.
  • Check third-party apps before a major upgrade: Memories, Recognize and other community apps sometimes take a few weeks to support a new major version. If one you depend on is not marked compatible yet, wait. Upgrading early means that app gets disabled.
  • Run the post-upgrade checks: after each major version, run occ db:add-missing-indices and occ maintenance:repair --include-expensive, then reload the admin overview until the warnings clear.
  • Back up three things together: the database, the data directory and config.php. On the community image, run occ maintenance:mode --on, dump the database with pg_dump or mariadb-dump, copy the files, then turn maintenance mode off. Files without a matching database dump cannot be fully restored.
  • Use AIO's built-in BorgBackup if you run AIO: it takes deduplicated daily backups of all containers, and you can restore from the same web interface. Point it at a disk that is not in the server.
  • Send one copy offsite: a second encrypted copy through restic or Borg to another location covers fire, theft and ransomware.
  • Run a restore test on a spare machine: the first time you restore should not be the day your disk dies.

Put a recurring calendar reminder on your new Nextcloud calendar for this. It is the cheapest insurance you will set up all week.

Top comments (0)