TECH4NEWBS

FOSS Tech - Made Easy

Self Host Nextcloud, Navidrome and Jellyfin on VPS with YunoHost

Take back your data. The complete beginner's guide to running your own files, photos, contacts, calendar, tasks, notes, music, movies and shows on a server you own, on a domain you own, reachable from anywhere.

Last updated: November 30, 2026. Contabo changes plan names and specs from time to time, and YunoHost and Nextcloud update constantly. If something looks a little different on your screen, follow the intent of the step.

Affiliate disclosure: The Contabo link in this guide (tech4newbs.com/contabo) is my affiliate link. It gets you a discount, and I earn a small commission at no extra cost to you. I'd recommend them either way. I've been on Contabo for 5 years.


The Short Version: What You're Building

You're going to rent one small server (a VPS), put a friendly control panel called YunoHost on it, point a domain name at it, and install three apps:

App What it's for What it replaces Address you'll use
Nextcloud The base of everything. Files, photos (with Memories), contacts, calendar, tasks and notes Google Drive, Google Photos, Google Contacts/Calendar, iCloud, Dropbox yourdomain.com/nextcloud
Navidrome Streams your own music library to your phone and computer Spotify or Apple Music, for music you own yourdomain.com/navidrome
Jellyfin Streams your own movies and shows to your TV, phone and computer Plex, or a pile of video files on a hard drive yourdomain.com/jellyfin

Here's the trick that makes it all click. Nextcloud is the front door. You drop files into it from any device. Navidrome and Jellyfin read the same folder on the server, so one upload shows up in all three places with nothing to import.

Phone / Laptop / TV
        |
        |  HTTPS (padlock, encrypted)
        v
   yourdomain.com  ---->  Contabo VPS running YunoHost
                          (reverse proxy + SSL + firewall + fail2ban)
                              |
                              |-- /nextcloud  -> Nextcloud (+ Memories, Calendar, Contacts, Tasks, Notes)
                              |-- /navidrome  -> Navidrome (music)
                              '-- /jellyfin   -> Jellyfin (movies and shows)
                                       |
                    /home/yunohost.multimedia/share   <- the shared media folder
                       |-- Music       (Navidrome reads this)
                       |-- Movies      (Jellyfin reads this)
                       '-- TV Shows    (Jellyfin reads this)

What you get when you're done:

What this setup is not:

What it costs (roughly, prices change):

Item Cost
Contabo VPS (Cloud VPS 4) about $5 to $7 a month depending on the term, plus a small one-time setup fee on shorter terms
Domain from Porkbun a few dollars for the first year (renewal price is usually higher, so check it)
Backblaze B2 backups pennies a month at this size (it's priced per terabyte)
Your time 2 to 3 hours the first time

What You Need Before You Start

Placeholders. Anywhere you see these, swap in your own value:

Placeholder Replace with
YOURIPADDRESS Your VPS's IP address (Step 1)
yourdomain.com The domain you buy (Step 2)
YOURUSERNAME The admin username you pick in Step 6

Table of Contents

  1. Step 1: Get Your VPS From Contabo
  2. Step 2: Buy Your Domain at Porkbun
  3. Step 3: Point Your Domain at Your VPS
  4. Step 4: Connect to Your VPS With SSH
  5. Step 5: Install YunoHost
  6. Step 6: Set Up YunoHost and Get Your SSL Certificate
  7. Step 7: Install Nextcloud
  8. Step 8: Turn On the Nextcloud Apps You Need
  9. Step 9: Add Two-Factor Authentication (2FA)
  10. Step 10: Set Up Your Shared Media Folders
  11. Step 11: Install Navidrome (Your Music)
  12. Step 12: Install Jellyfin (Movies and Shows)
  13. Step 13: Photos and Videos With Nextcloud Memories
  14. Step 14: Add Family and Friends
  15. Step 15: Install the Apps on Your Phone, Computer and TV
  16. Step 16: Back Up Everything (The 3-2-1 Plan)
  17. Your Monthly Checklist
  18. Troubleshooting
  19. Summary: What You Just Built

Step 1: Get Your VPS From Contabo

A VPS (virtual private server) is a small computer in a data center that's always on and always online. This is where your stuff will live.

I've used Contabo for 5 years. They give you a lot of RAM and storage for the money, which is exactly what self-hosting needs. Contabo calls this family Core VPS, and the entry plan is Cloud VPS 4:

That's more than enough to run all three apps at once. (If the plan names have changed by the time you read this, look for the cheapest option with 4 cores and 8 GB of RAM.)

Use my link for a discount: tech4newbs.com/contabo

Contabo Cloud VPS 4 order page with the plan settings

On the order page, here's what I choose:

Choosing Debian under Image on the Contabo order page

Selecting Debian 12 from the version dropdown

Setting the root password and clicking Next on the Contabo order page

Pick Debian 12, not Debian 13. YunoHost's current stable release runs on Debian 12. Version 13 of YunoHost (for Debian 13) is still in beta and its developers advise against using it on a production server. Choosing Debian 13 means the install in Step 5 won't be the supported path.

Storage tip. 100 GB is plenty for photos, music and a modest movie library. If you plan to hoard movies, either choose a larger Core VPS or add storage at checkout. You can also compress your videos (Step 12).

Finish the order. Contabo emails you a "Control Panel Login Details" message. It can take a few minutes up to a few hours for your server to be ready.


Step 2: Buy Your Domain at Porkbun

A domain name (like yourname.cloud) is the address you'll type on every device. It also lets your server get a free HTTPS certificate, which is what puts the padlock in the browser.

I use Porkbun because it's cheap, simple and includes WHOIS privacy at no charge (leave it on).

  1. Go to porkbun.com and create an account. Use a unique password and turn on 2FA for the account.
  2. Search for a name. A .cloud domain works well and is usually cheap. Any normal ending is fine.

Porkbun domain search showing johnsmith.cloud as available

  1. Before you pay, check the renewal price next to the first-year price. Some endings are very cheap the first year and much more later.
  2. Buy 1 year to start. Skip the upsells at checkout.

Choosing the 1 year term at Porkbun checkout

Your domains live at porkbun.com/account/domains.


Step 3: Point Your Domain at Your VPS

Right now your domain points at a parking page. We need to point it at your server's IP address.

Find your VPS IP address:

  1. Log in at my.contabo.com with the details from the "Control Panel Login Details" email.

Contabo control panel login screen

  1. Open VPS control and copy the IPv4 address listed under your server. That's your YOURIPADDRESS.

Contabo VPS control page showing the server's IPv4 address

Set the DNS records at Porkbun:

  1. At porkbun.com/account/domains, click DNS next to your domain.

Porkbun domain management page

Opening the DNS settings for your domain at Porkbun

  1. Delete the default records that point to pixie.porkbun.com. These are usually an ALIAS on the root domain and a CNAME on *.

Deleting the default ALIAS and CNAME records at Porkbun

  1. Add three A records, each with your YOURIPADDRESS as the answer:
Type Host Answer
A (leave blank) YOURIPADDRESS
A www YOURIPADDRESS
A * YOURIPADDRESS

The Add Record button in Porkbun's DNS panel

All three A records pointing at the VPS IP address

The blank one is your main domain. The * is a wildcard: it makes every subdomain (like cloud.yourdomain.com) point to your server too, so you can add subdomains later without touching DNS again.

Leave everything else at its default. If your VPS also has an IPv6 address, you can add matching AAAA records, but it's optional.

Wait about 10 minutes for the change to spread across the internet. While you wait, move on to Step 4. When you're ready to check, run this in your terminal. It works on Windows, Mac and Linux:

nslookup yourdomain.com

When the answer shows your YOURIPADDRESS, you're good.


Step 4: Connect to Your VPS With SSH

SSH is how you type commands on your server from your own computer.

A blank Terminal window

Type this, with your own IP address:

ssh root@YOURIPADDRESS

The first time, it asks if you trust this server. Type yes and press Enter. Then enter the root password you set when you ordered the VPS. That's the one you picked at checkout, not any other password Contabo emailed you.

SSH asking for the root password

Nothing shows while you type the password. That's normal. Perfect, you're now controlling your server.

The welcome message after logging in to the VPS over SSH


Step 5: Install YunoHost

YunoHost is the star of this guide. It's a free, open-source layer on top of Debian that turns a blank server into a self-hosting machine with:

You do not have to touch a reverse proxy or a certificate by hand. YunoHost does it all.

The YunoHost app catalog

While connected over SSH, run these one at a time. First update the server:

apt update && apt upgrade -y

Make sure curl is installed:

apt install -y curl

Then install YunoHost with its one-line installer:

curl https://install.yunohost.org | bash

When it asks, answer y to continue, and y to let it override the SSH configuration. This takes several minutes. Let it finish.

The YunoHost installer asking whether to continue

When it's done, YunoHost tells you to finish setup from your browser.

The YunoHost install finished message in Terminal


Step 6: Set Up YunoHost and Get Your SSL Certificate

Post-install (one time):

  1. In your browser, open https://YOURIPADDRESS.
  2. Your browser warns that the connection isn't private. That's expected, because there's no real certificate yet. Click Advanced, then Proceed.

Browser warning when visiting the server by IP address

  1. Accept the terms.

YunoHost setup screen with the terms and the Begin button

  1. Choose I want to add a domain I own and enter your domain, like yourdomain.com.

Choosing to add a domain you own in YunoHost

  1. Create your admin username and a strong password. Use your password manager.

Creating the YunoHost admin username and password

This login does a lot. The username and password you pick here are your YunoHost admin login, your SSH login (the root login stops working over SSH after this step, so you'll use your new username), and the login you'll use for Nextcloud, Navidrome and Jellyfin. Make the password long and unique.

Get your free HTTPS certificate:

  1. Open the admin panel at https://yourdomain.com/yunohost/admin and log in.

The YunoHost admin login screen

  1. Go to Domains, click your domain, then open SSL certificate.

Choosing Domains on the YunoHost home screen

Selecting your domain from the list

  1. If it warns about the diagnosis, choose to ignore it. Then click to install a Let's Encrypt certificate.

The Certificate tab with the Let's Encrypt install option

If it fails, DNS probably hasn't finished spreading. Wait ten minutes and try again (use the nslookup check from Step 3). YunoHost renews the certificate automatically from now on.

Now visit https://yourdomain.com. You should see a padlock and the YunoHost login page.

YunoHost login page on your domain with no security warning


Step 7: Install Nextcloud

Time for the base of the whole setup.

  1. In the YunoHost admin panel, click Applications, then Install an app.

The Applications section of the YunoHost admin panel

The Install an app button in the top right

  1. Search for Nextcloud and click Install.

Nextcloud in the YunoHost app search results

  1. Keep the default settings. The URL path is /nextcloud. Leave access at its default so your sync apps can connect (Nextcloud has its own login).

Nextcloud install settings with the /nextcloud URL path

  1. Click Install and wait. It can take a few minutes.

Nextcloud listed under Applications after installing

When it finishes, open https://yourdomain.com/nextcloud and log in with your YunoHost username and password.

The Nextcloud welcome screen

Read more about this install in my Nextcloud walkthrough.

Path or subdomain? Choose how each app gets its address

You can reach each app two ways, and YunoHost supports both:

Style Example Good for
Path yourdomain.com/nextcloud Simplest. One domain, one certificate. This is what my other guides use
Subdomain cloud.yourdomain.com Cleaner-looking addresses, easier to remember

To use a subdomain, your wildcard * DNS record from Step 3 already points everything at your server. In the admin panel:

  1. Go to Domains, then Add a domain, and enter something like cloud.yourdomain.com.
  2. Open the new domain and install a Let's Encrypt certificate (same as Step 6).
  3. When you install an app, choose that domain and set the path to /.

Already installed an app and changed your mind? You can move it:

sudo yunohost app change-url nextcloud -d cloud.yourdomain.com -p /

Pick one style and stick with it, because every phone, TV and computer app you set up later uses that exact address. The rest of this guide uses paths.


Step 8: Turn On the Nextcloud Apps You Need

Nextcloud is a platform, and its features are small apps inside it. Here's what to turn on.

Click your profile picture (top right), then Apps, and enable or download:

Nextcloud app What it does Replaces
Files Built in. Your files, with sharing links Google Drive, Dropbox
Memories Photo and video timeline, maps, albums, "On this day" Google Photos
Contacts Address book that syncs to your phone Google Contacts
Calendar Calendars that sync to your phone Google Calendar
Tasks To-do lists Google Tasks
Notes Simple notes Google Keep
Two-Factor TOTP Provider 2FA codes (we set this up in Step 9)

Search for each by name. Memories is under the Multimedia category.

Power-user shortcut (optional). If you prefer the command line, YunoHost can open a Nextcloud shell for you:

sudo yunohost app shell nextcloud

Then, inside that shell:

php occ app:install contacts
php occ app:install calendar
php occ app:install tasks
php occ app:install notes
php occ app:install memories

Type exit to leave the shell.


Step 9: Add Two-Factor Authentication (2FA)

2FA means a stolen password isn't enough to get in. You'll also need a six-digit code from your phone. Nextcloud uses the standard TOTP method, which works with any authenticator app (Aegis on Android, for example, or any app that follows the TOTP standard).

Turn it on:

  1. Click your profile picture, then Apps, and open Disabled apps.
  2. Find Two-Factor TOTP Provider and click Enable.
  3. Click your profile picture, then Personal settings, then Security.
  4. Under Two-Factor Authentication, click Enable TOTP.
  5. Scan the QR code with your authenticator app and type in the code it shows to confirm.
  6. Click to generate backup codes. These let you in if you lose your phone. Store them somewhere safe, separate from your phone (print them, or save them in your password manager).

Test it before you rely on it. Open a private/incognito window, go to yourdomain.com/nextcloud, and log in. Nextcloud should ask for your six-digit code. If it doesn't, 2FA isn't active on your account yet, so go back through the steps above.

Require it for everyone (optional): In Nextcloud, go to Administration settings, then Security, and enforce two-factor authentication for all users.

What changes for your apps. Once 2FA is on, your phone and desktop apps can't log in with your plain password. Nextcloud's own apps (and DAVx5) handle this for you by opening a browser to approve the login. If an app only offers a password box, create an app password: in Nextcloud, go to Personal settings, Security, Devices and sessions, then Create new app password.

If you ever get locked out (lost phone and no backup codes), turn 2FA off for your account from the server:

sudo yunohost app shell nextcloud

Then:

php occ twofactorauth:disable YOURUSERNAME totp

Before upgrading Nextcloud: take a backup first (YunoHost makes a safety backup automatically when you upgrade an app, but check). After each Nextcloud upgrade, test a fresh login in a private window. One recent YunoHost forum report describes an "internal server error" when logging back in after a major Nextcloud upgrade. The user suspected the 2FA app, no cause was confirmed in the thread, and restoring the pre-upgrade backup was their workaround. It's rare, but it's a good reminder of why we make backups.

For the YunoHost admin account itself, rely on a long, unique password.


Step 10: Set Up Your Shared Media Folders

This is the clever bit that ties everything together.

YunoHost keeps a shared media folder on the server at:

/home/yunohost.multimedia/share

Nextcloud shows it to you as an external storage called Shared multimedia. Navidrome and Jellyfin read from that very same folder. So when you upload a song through Nextcloud, Navidrome sees it. When you upload a movie, Jellyfin sees it.

Create your folders:

  1. Open Nextcloud and click Files.

Opening Files from the Nextcloud apps menu

  1. Open Shared multimedia.

The Shared multimedia folder in Nextcloud

  1. Rename the Videos folder to Movies.

Renaming the Videos folder to Movies

  1. Create a folder called TV Shows.

Creating a new folder in Nextcloud

Naming the new folder TV Shows

  1. Make sure there's a folder called Music (create it if it isn't there).

Shared multimedia with the Movies, TV Shows and Music folders

Here's how each folder maps to the server and the app that uses it:

In Nextcloud (Files, then Shared multimedia) On the server Used by
Music /home/yunohost.multimedia/share/Music Navidrome (and Jellyfin if you want music there too)
Movies /home/yunohost.multimedia/share/Movies Jellyfin
TV Shows /home/yunohost.multimedia/share/TV Shows Jellyfin

What about photos and phone videos? Keep those in your normal Nextcloud folders (like Photos), not in Shared multimedia. Memories works best there, because it can index them quickly (Step 13). Memories can index external storage like Shared multimedia, but it's slower. Navidrome and Jellyfin don't need your photos.

Name things so the apps recognize them

Apps use folder and file names to fetch cover art and details, so a little neatness pays off.

Movies (one folder per movie, with the year):

Movies/
  Movie Name (2008)/
    Movie Name (2008).mp4

TV shows (a folder per show, then per season):

TV Shows/
  Show Name (2011)/
    Season 01/
      Show Name S01E01.mkv
      Show Name S01E02.mkv

Music (artist, then album, then tracks):

Music/
  Artist Name/
    Album Name (2020)/
      01 - Track Title.flac
      02 - Another Track.flac

For music, good tags (artist, album, track number) matter more than file names. If your tags are messy, the free tool MusicBrainz Picard can fix them in bulk before you upload.

Getting your files up there

Dragging music files into the Music folder in Nextcloud


Step 11: Install Navidrome (Your Music)

Navidrome is a lightweight music server, and a great fit for phones.

  1. In the YunoHost admin panel, go to Applications, then Install an app, and search for Navidrome.

The Install an app button in YunoHost

Navidrome in the YunoHost app search results

  1. Click Install. Use the path /navidrome and choose your language.

Navidrome install settings with the /navidrome URL path

  1. Set access to Visitors. YunoHost's Navidrome page says you must activate visitors during installation if you want to connect a client player to Navidrome. Don't worry, people still need a username and password.
  2. Wait for it to finish, then open https://yourdomain.com/navidrome.

Navidrome listed next to Nextcloud under Applications

Log in with the same username and password as your YunoHost login. Navidrome's library points to your Shared multimedia Music folder by default, so any music you upload there shows up on its own. Give it a few minutes to scan.

Navidrome after logging in

Navidrome library set to the Shared multimedia Music folder

Read more in my Navidrome walkthrough.

To listen on your phone or computer, you'll use a client app with this server address (details in Step 15):

https://yourdomain.com/navidrome

Step 12: Install Jellyfin (Movies and Shows)

Jellyfin is your own streaming service for your own movies and shows. It also plays music, so it's handy on a TV.

  1. In YunoHost, go to Applications, then Install an app, and search for Jellyfin.

Jellyfin in the YunoHost app search results

  1. Install it with the path /jellyfin.

Jellyfin install settings with the /jellyfin URL path

  1. Set access to Visitors so your TV, phone and computer apps can reach the login screen. Jellyfin still requires a username and password.
  2. Open https://yourdomain.com/jellyfin and log in with your YunoHost username and password.

The Jellyfin login screen

Add your libraries:

  1. Click your user icon, then Dashboard, then Libraries, then Add Media Library.

Opening the Dashboard from the Jellyfin user menu

Libraries in the Jellyfin Dashboard

The Add Media Library button

  1. Choose the content type, click + next to Folders, and type the path. Keep the default library settings.

Adding a Movies library and clicking + next to Folders

Entering the Movies folder path

Library Content type Folder path
Movies Movies /home/yunohost.multimedia/share/Movies
Shows Shows /home/yunohost.multimedia/share/TV Shows
Music (optional) Music /home/yunohost.multimedia/share/Music

Entering the TV Shows folder path

Entering the Music folder path

After adding files later, you can run Dashboard, then Libraries, then Scan All Libraries to see them right away.

Jellyfin with the media libraries loaded

Turn on Quick Connect for easy TV logins:

  1. Go to Dashboard, then General, and make sure Quick Connect is enabled.
  2. On your TV, open the Jellyfin app and enter your server address: https://yourdomain.com/jellyfin.
  3. Choose Quick Connect. The TV shows a short code.
  4. On your phone or computer (already signed in to Jellyfin), open your user menu, choose Quick Connect, and enter the code.

That's it. No typing a long password with a TV remote.

Jellyfin streaming a movie on a TV

Keep your video files easy to play. Your VPS has no graphics card, so it can't transcode (convert on the fly) very well. Files that your devices play directly work great:

If something stutters, that's usually a transcoding problem, and re-encoding that one file once on your own computer fixes it for good. The free app HandBrake is a good tool for this.

Read more in my Jellyfin walkthrough.


Step 13: Photos and Videos With Nextcloud Memories

Memories gives you a Google Photos-style timeline inside Nextcloud: photos and videos sorted by date, a map, albums, and "this day in past years" reminders.

Nextcloud Memories photo timeline

First-time setup:

  1. In Nextcloud, click Memories in the top menu.
  2. The welcome screen asks which folder holds your photos. Choose a folder like Photos (create one in Files if needed).
  3. Set your phone's auto upload to send photos to that same folder (Step 15).

Index photos you already uploaded. Memories reads photo details (dates, locations) in the background as new files arrive. For files already there, run this from your server:

sudo yunohost app shell nextcloud

Then:

php occ files:scan --all
php occ memories:index

If you want place names on the map, add this once:

php occ memories:places-setup

Two quick tips:

Want something even closer to Google Photos? Immich is a great dedicated option. I cover it in How to Self-Host Immich on a VPS. This guide sticks to Memories so you only need the three apps.


Step 14: Add Family and Friends

You manage everyone from one place.

  1. In the YunoHost admin panel, go to Users, then New user.
  2. Give them a username and a strong password.
  3. They can now sign in to Nextcloud, Navidrome and Jellyfin with that same login. Their account appears in each app the first time they sign in.
  4. To limit which apps a person can use, go to Users, then Groups and permissions, and adjust the permission for each app.

Regular users don't get SSH access, which is what you want. For Nextcloud, have everyone turn on 2FA (Step 9), or enforce it for all users.


Step 15: Install the Apps on Your Phone, Computer and TV

Every app below is free unless noted. Use these server addresses (swap in your domain):

App type Server address
Nextcloud and DAVx5 https://yourdomain.com/nextcloud
Navidrome music apps https://yourdomain.com/navidrome
Jellyfin apps https://yourdomain.com/jellyfin

Your username and password are the ones you use for YunoHost. For Nextcloud, you may approve the login in your browser because of 2FA.

The cheat sheet: my pick for each device

Device Files, photos, contacts, calendar Music Movies and shows
Android phone Nextcloud app, Memories app, DAVx5 Navic (or Symfonium) Jellyfin for Android
iPhone / iPad Nextcloud app, Memories in Safari, built-in Contacts and Calendar Substreamer Jellyfin Mobile or Swiftfin
Android TV / Fire TV n/a Jellyfin (plays music too) Jellyfin for Android TV
Apple TV n/a Swiftfin Swiftfin
Roku, LG, Samsung TV n/a n/a Jellyfin TV app
Windows Nextcloud Desktop, Thunderbird Feishin Browser or Jellyfin Desktop
Mac Nextcloud Desktop, built-in Contacts and Calendar Feishin or Submariner Browser, or Jellyfin Desktop
Linux Nextcloud Desktop, Thunderbird Feishin Jellyfin Desktop (Flathub) or browser
Any browser yourdomain.com/nextcloud yourdomain.com/navidrome yourdomain.com/jellyfin

On GrapheneOS or another de-Googled phone? Get the apps from F-Droid or your preferred store. See my GrapheneOS apps list for how I install them.

Nextcloud: files, photos, contacts, calendar, tasks, notes

Device Download
All platforms (official list) nextcloud.com/install/#install-clients
Android Google Play or F-Droid
iPhone / iPad App Store
Windows, Mac, Linux Desktop client
Memories (Android) F-Droid, also on Google Play (linked from memories.gallery)
Notes (Android) github.com/nextcloud/notes-android
Notes (iPhone) github.com/nextcloud/notes-ios (or search "Nextcloud Notes" in the App Store)

Phone photo backup (the Google Photos replacement):

  1. Install the Nextcloud app and sign in to https://yourdomain.com/nextcloud.

The Log in button in the Nextcloud mobile app

Entering your server address in the Nextcloud app

Granting the Nextcloud app access to your account

The Nextcloud mobile app after a successful login

  1. Open the app's Settings, then Auto upload, and pick your camera folder.
  2. Set the upload destination to the Photos folder you chose for Memories in Step 13.
  3. Open Memories to see your timeline fill in.

On the Memories app: there's a dedicated Memories app for Android. On iPhone, you can open https://yourdomain.com/nextcloud in Safari and use Add to Home Screen to get an app-like shortcut to Memories, and use the Nextcloud app for the auto upload.

Contacts and calendar on Android: DAVx5. DAVx5 syncs contacts, calendars and tasks with your phone's built-in apps. Install it, choose to log in with a URL, enter https://yourdomain.com/nextcloud and approve the login. Then pick which address books and calendars to sync. For the apps on your phone, I use the GrapheneOS Contacts app and Fossify Calendar, as I describe in My Self Hosted VPS Setup. For tasks, an app that reads CalDAV tasks (such as Tasks.org) works through DAVx5.

Contacts and calendar on iPhone (no extra app).

  1. Go to Settings, then Calendar (or Contacts), then Accounts, then Add Account, then Other.

  2. Add a CalDAV account (or CardDAV for contacts).

  3. Server:

    https://yourdomain.com/nextcloud/remote.php/dav/principals/users/YOURUSERNAME/
  4. Use your username and an app password (see Step 9).

Desktop: Thunderbird can use CalDAV/CardDAV with the same server address. The Nextcloud desktop client keeps your chosen folders in sync with your computer.

Navidrome: music clients

Navidrome works with many Subsonic-compatible apps. Here's my shortlist, with every link checked against navidrome.org/apps (the full list has 100+ apps).

Device App Notes Download
Linux, Windows, Mac Feishin Free, open source desktop player. Also has a web version GitHub releases
Android Navic Free, open source, works offline. Still in an early alpha version, so expect rough edges F-Droid
Android (polished) Symfonium Very customizable, supports Android Auto. Free trial, then paid Google Play
Android (alternative) Substreamer Free, open source, offline downloads Google Play
iPhone / iPad Substreamer Free, open source, offline downloads App Store
Mac (alternative) Submariner Free native Subsonic client with offline downloads App Store
Kodi Navidrome add-on Browse your music library in Kodi GitHub
Any browser Navidrome web app No install yourdomain.com/navidrome

Setting up any of them: add a new server, enter https://yourdomain.com/navidrome, then your YunoHost username and password. For offline listening, download albums to your phone before a trip.

Navic playing music from Navidrome

Navic showing a Navidrome music library

Jellyfin: movies, shows and TV

All of these are listed on the official Jellyfin clients page.

Device App Download
Android phone / tablet Jellyfin for Android Google Play, F-Droid
iPhone / iPad Jellyfin Mobile App Store
iPhone / iPad / Apple TV Swiftfin (official companion app) App Store
Android TV / Fire TV Jellyfin for Android TV Google Play, F-Droid, Amazon Appstore
Roku Jellyfin for Roku Channel Store
LG webOS Jellyfin for webOS LG Content Store
Samsung Tizen Jellyfin for Tizen Samsung Smart TV App Store
Xbox Jellyfin for Xbox Microsoft Store
Windows, Mac, Linux Jellyfin Desktop GitHub. Linux has a stable build on Flathub, but the Windows and Mac builds there are development builds, so your browser is the safer pick on those
Kodi JellyCon add-on GitHub

Setting up any of them: enter https://yourdomain.com/jellyfin, then either sign in or choose Quick Connect (Step 12).


Step 16: Back Up Everything (The 3-2-1 Plan)

Servers die, people make mistakes, and updates occasionally break things. A backup you've never restored is a hope, not a backup. So let's set up three layers, which is the classic 3-2-1 rule (3 copies, 2 types of storage, 1 off-site):

Layer What Where When
1 Contabo snapshot or auto backups Contabo Before big changes, or daily if you buy the add-on
2 Encrypted backup of everything Backblaze B2 (cloud) Automatically every night
3 A full copy on a hard drive you own Your computer's external drive Once a year, with rsync

Layer 1: Contabo snapshot (30 seconds)

Your plan includes 1 snapshot. Before any big change (like a major Nextcloud upgrade), take one in the Contabo control panel at my.contabo.com. Contabo also sells automatic daily backups as an add-on, if you want that extra safety net.

Layer 2: Automatic nightly backups to Backblaze B2

Backblaze B2 is cheap cloud storage priced per terabyte, so a 100 GB VPS costs pennies a month. We'll use a free tool called restic, which compresses, de-duplicates and encrypts your data before it leaves your server. Backblaze only ever sees scrambled data.

What gets backed up:

A. Create your Backblaze bucket and key

  1. Create an account at backblaze.com, and make sure B2 Cloud Storage is enabled.
  2. Go to B2 Cloud Storage, then Buckets, then Create a Bucket. Give it a unique name and keep it Private.
  3. Copy the bucket's Endpoint. It looks like s3.us-west-004.backblazeb2.com (yours may differ).
  4. Go to Application Keys, then Add a New Application Key. Limit it to your one bucket.
  5. Copy the keyID and applicationKey right away. Backblaze shows the applicationKey only once. Save both in your password manager.

B. Install restic on your server

SSH in (ssh YOURUSERNAME@yourdomain.com) and run:

sudo apt install -y restic

C. Save your credentials safely

Create a locked-down settings file (only root can read it):

sudo install -m 600 /dev/null /etc/restic-b2.env
sudo nano /etc/restic-b2.env

Paste this in, replacing the four values with yours. Then press Ctrl+O, Enter, then Ctrl+X to save and exit:

export AWS_ACCESS_KEY_ID="YOUR_KEY_ID"
export AWS_SECRET_ACCESS_KEY="YOUR_APPLICATION_KEY"
export RESTIC_REPOSITORY="s3:s3.YOUR-REGION.backblazeb2.com/YOUR-BUCKET-NAME"
export RESTIC_PASSWORD_FILE="/etc/restic-b2.password"

Now create the encryption password for your backups:

sudo sh -c 'openssl rand -base64 32 > /etc/restic-b2.password'
sudo chmod 600 /etc/restic-b2.password
sudo cat /etc/restic-b2.password

Copy that password into your password manager right now. If you lose it, your backups cannot be decrypted, by you or anyone else. Keep a copy somewhere that isn't this server.

D. Create the backup repository (one time)

sudo bash -c 'source /etc/restic-b2.env && restic init'

E. Keep Nextcloud's big data out of the YunoHost archive

Restic will back up your Nextcloud files directly, so there's no need for YunoHost to copy them into its archive as well (that would waste your 100 GB):

sudo yunohost app setting nextcloud do_not_backup_data -v 1

This means the YunoHost archive holds Nextcloud's settings and database, and restic holds your files. For a full restore you need both, and the restore steps below cover it.

F. Create the backup script

sudo nano /usr/local/bin/b2-backup.sh

Paste this in:

#!/bin/bash
set -euo pipefail
source /etc/restic-b2.env

# 1) Fresh YunoHost backup (settings, databases, app configs)
yunohost backup delete nightly >/dev/null 2>&1 || true
yunohost backup create --name nightly

# 2) Send everything to Backblaze B2 (encrypted)
restic backup \
  /home/yunohost.backup/archives \
  /home/yunohost.app/nextcloud \
  /home/yunohost.multimedia/share \
  --tag nightly

# 3) Keep 7 daily, 4 weekly and 6 monthly snapshots, and clean up the rest
restic forget --prune --keep-daily 7 --keep-weekly 4 --keep-monthly 6

Save it, then make it runnable:

sudo chmod 700 /usr/local/bin/b2-backup.sh

G. Do the first backup by hand

The first upload takes the longest. Run it inside tmux so it keeps going if your connection drops:

sudo apt install -y tmux
tmux new -s backup
sudo /usr/local/bin/b2-backup.sh

If you get disconnected, log back in and run tmux attach -t backup to see it again.

H. Schedule it every night

echo '30 3 * * * root /usr/local/bin/b2-backup.sh >> /var/log/b2-backup.log 2>&1' | sudo tee /etc/cron.d/b2-backup

That runs the backup at 3:30 AM server time every night.

I. Check that it works

List your snapshots:

sudo bash -c 'source /etc/restic-b2.env && restic snapshots'

Once a month, check that the backup data is healthy:

sudo bash -c 'source /etc/restic-b2.env && restic check'

J. Test a restore (please do this once)

Restore a small folder to a temporary location and look inside:

sudo bash -c 'source /etc/restic-b2.env && restic restore latest --target /root/restore-test --include /home/yunohost.multimedia/share/Music'
ls /root/restore-test/home/yunohost.multimedia/share/Music
sudo rm -rf /root/restore-test

If the worst happens (full restore outline):

  1. Order a new Debian 12 VPS, point your domain at its IP, and install YunoHost (Steps 3 to 6) using the same domain.
  2. Install restic and recreate /etc/restic-b2.env and /etc/restic-b2.password (from your password manager).
  3. Restore the latest snapshot to a temporary folder: sudo bash -c 'source /etc/restic-b2.env && restic restore latest --target /restore'.
  4. Copy the YunoHost archive from /restore/home/yunohost.backup/archives/ into /home/yunohost.backup/archives/, then restore it from the admin panel (Backup, then Restore) or with sudo yunohost backup restore nightly.
  5. Copy your files back: /restore/home/yunohost.app/nextcloud/ to /home/yunohost.app/nextcloud/, and /restore/home/yunohost.multimedia/share/ to /home/yunohost.multimedia/share/.
  6. In the Nextcloud shell (sudo yunohost app shell nextcloud), run php occ files:scan --all so Nextcloud notices the files.

YunoHost has its own restore guide at doc.yunohost.org if you want the official walkthrough.

Prefer a click-to-install option? YunoHost's app catalog has a restic app that supports Backblaze B2, but it's built around SFTP first. I use the explicit script above because you can see exactly what it does, and it works the same way every time.

Layer 3: Once a year, copy it all to a hard drive with rsync

Cloud backups are great, but I like one copy that's physically in my hands, offline, in a drawer. Once a year I plug in an external drive and pull a copy with rsync, a tool that only copies what's changed.

Encrypt that drive (BitLocker on Windows, FileVault on Mac, or LUKS on Linux). It will hold all your personal data.

On Mac or Linux you can use rsync from the Terminal. On Windows, use WSL (the Windows Subsystem for Linux), which gives you a Linux terminal. On a Mac, install a newer rsync first with brew install rsync, since the built-in one is very old.

A. Prepare the server (the yearly ritual)

Log in to your server and install rsync:

ssh YOURUSERNAME@yourdomain.com
sudo apt install -y rsync

Make a fresh YunoHost backup to grab the settings and databases:

sudo yunohost backup create --name yearly-$(date +%Y)

Your files are owned by system users, so rsync needs permission to read them. We'll grant that temporarily, for the length of the copy. Open the sudo editor, which checks your syntax before saving so you can't break sudo:

sudo EDITOR=nano visudo -f /etc/sudoers.d/yearly-rsync

Add this one line (with your username), then save and exit:

YOURUSERNAME ALL=(root) NOPASSWD: /usr/bin/rsync

B. Copy everything to your drive (run on your own computer)

Plug in your drive and find its path (for example /media/you/BACKUPDRIVE on Linux or /Volumes/BACKUPDRIVE on Mac). Then create folders and copy. Do a practice run first by adding -n (a dry run that copies nothing and just shows what would happen):

mkdir -p /path/to/BACKUPDRIVE/vps-backup/nextcloud
mkdir -p /path/to/BACKUPDRIVE/vps-backup/multimedia
mkdir -p /path/to/BACKUPDRIVE/vps-backup/yunohost-archives

Your Nextcloud files and photos:

rsync -avh --progress --partial --no-owner --no-group \
  --rsync-path="sudo rsync" \
  YOURUSERNAME@yourdomain.com:/home/yunohost.app/nextcloud/ \
  /path/to/BACKUPDRIVE/vps-backup/nextcloud/

Your music, movies and shows:

rsync -avh --progress --partial --no-owner --no-group \
  --rsync-path="sudo rsync" \
  YOURUSERNAME@yourdomain.com:/home/yunohost.multimedia/share/ \
  /path/to/BACKUPDRIVE/vps-backup/multimedia/

YunoHost's own backup archives (settings and databases):

rsync -avh --progress --partial --no-owner --no-group \
  --rsync-path="sudo rsync" \
  YOURUSERNAME@yourdomain.com:/home/yunohost.backup/archives/ \
  /path/to/BACKUPDRIVE/vps-backup/yunohost-archives/

A few notes:

C. Close the door again (run on the server)

Remove the temporary permission as soon as the copy is done:

sudo rm /etc/sudoers.d/yearly-rsync

Then put the drive somewhere safe, unplugged.

To restore from the drive, reverse the copy (rsync from the drive back to the server), restore the YunoHost archive, and run php occ files:scan --all in the Nextcloud shell.


Your Monthly Checklist

Ten minutes a month keeps everything healthy:


Troubleshooting

The certificate won't install. Your DNS probably hasn't spread yet. Run nslookup yourdomain.com and confirm it shows your VPS IP. Wait and retry.

I can't SSH in as root. That's by design after YunoHost's post-install. Use ssh YOURUSERNAME@yourdomain.com with the admin username you created.

I locked myself out of SSH. Use the console in the Contabo control panel to get back in.

My phone or TV app can't connect to Navidrome or Jellyfin. Check three things: the address includes the path (https://yourdomain.com/jellyfin), it starts with https://, and the app's access in YunoHost is set to Visitors (Applications, click the app, Permissions).

New music or movies aren't showing up. Wait a few minutes for Navidrome to rescan. In Jellyfin, run Scan All Libraries. Make sure the files are inside the right Shared multimedia folder and named properly (Step 10).

Memories shows no photos. Check that your Memories folder matches your auto-upload folder, then run php occ files:scan --all and php occ memories:index in the Nextcloud shell (Step 13).

Nextcloud asks for a code I don't have. Use a backup code. If you have none, disable 2FA for your account from the server (command in Step 9).

The disk is full. Find the biggest folders with:

sudo du -h --max-depth=1 /home | sort -h

A video stutters in Jellyfin. It's almost always transcoding. Re-encode that file to H.264/AAC in MP4 or MKV (Step 12).

Something broke after an upgrade. Restore the automatic pre-upgrade backup from the admin panel (Backup), or from your Contabo snapshot. This is exactly why we made them.

Still stuck? The YunoHost forum is friendly and full of answers, and you can always find me on YouTube.


Summary: What You Just Built

You now run your own private cloud on a single VPS:

That's your data, on your server, under your control, and off the big tech clouds.

Get started with Contabo here (affiliate link, discount included): tech4newbs.com/contabo

Keep going

Official sites

If this guide helped, subscribe on YouTube and tell a friend who's tired of paying big tech to hold their own stuff.

⬅ Previous post
My Self Hosted VPS Setup

Next post ➡
Best Gmail Alternatives for Privacy in 2026