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:
- Access from anywhere in the world. It's a normal HTTPS website, so there's no Tailscale or VPN to turn on. Your phone's single VPN slot stays free for your regular VPN.
- Secure and private. Free HTTPS certificates, a firewall, automatic banning of anyone guessing passwords, 2FA on Nextcloud and nightly encrypted backups.
- One simple dashboard. YunoHost installs, updates and backs up everything with a click. It also handles the reverse proxy, certificates and domain wiring for you.
- Easy sharing. Share a photo album or a file with anyone through a link.
- Easy TV logins. Jellyfin's Quick Connect lets you sign in on your TV with a six-letter code instead of typing a password with a remote.
What this setup is not:
- It isn't an email server. Skip email and let a privacy-friendly provider handle it. For that I'd recommend FastMail or Proton Mail depending on your needs.
- It isn't built for heavy 4K transcoding. A VPS has no graphics card, so you'll want video files that play directly on your devices (I'll show you how).
- Storage is limited to what your VPS plan includes (100 GB on the plan I use). That's plenty for photos, music and a sensible movie library. More on that in Step 1.
- Only store media you have the right to store.
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
- A computer (Windows, Mac or Linux) and a phone
- A debit or credit card
- A password manager (Bitwarden, KeePassXC or similar). You'll create several strong passwords, and you should not trust your memory with them
- About 2 to 3 hours
- No Linux experience. If you can copy and paste, you can do this. Don't worry, I'll tell you exactly what to type
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
- Step 1: Get Your VPS From Contabo
- Step 2: Buy Your Domain at Porkbun
- Step 3: Point Your Domain at Your VPS
- Step 4: Connect to Your VPS With SSH
- Step 5: Install YunoHost
- Step 6: Set Up YunoHost and Get Your SSL Certificate
- Step 7: Install Nextcloud
- Step 8: Turn On the Nextcloud Apps You Need
- Step 9: Add Two-Factor Authentication (2FA)
- Step 10: Set Up Your Shared Media Folders
- Step 11: Install Navidrome (Your Music)
- Step 12: Install Jellyfin (Movies and Shows)
- Step 13: Photos and Videos With Nextcloud Memories
- Step 14: Add Family and Friends
- Step 15: Install the Apps on Your Phone, Computer and TV
- Step 16: Back Up Everything (The 3-2-1 Plan)
- Your Monthly Checklist
- Troubleshooting
- 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:
- 4 vCPU cores
- 8 GB RAM
- 100 GB SSD (more storage is available as an add-on)
- 200 Mbit/s port
- Unlimited traffic
- 1 snapshot included
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

On the order page, here's what I choose:
- Quantity: 1
- Term: Monthly if you want to test the waters, or a longer term for a cheaper monthly price
- Region: The one closest to you and your family (I use EU). Closer means snappier streaming
- Image / Operating system: Debian 12. Pick it under OS, then Debian. See the warning below


- Data protection / auto backups: Optional. Daily automatic backups cost extra. We'll build free backups in Step 16, but this is a cheap safety net if you want one
- Private networking, extra storage, object storage, monitoring: None
- Bandwidth: Unlimited
- IPv4: 1
- Password: Set a strong root password and save it in your password manager

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).
- Go to porkbun.com and create an account. Use a unique password and turn on 2FA for the account.
- Search for a name. A
.clouddomain works well and is usually cheap. Any normal ending is fine.

- 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.
- Buy 1 year to start. Skip the upsells at 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:
- Log in at my.contabo.com with the details from the "Control Panel Login Details" email.

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

Set the DNS records at Porkbun:
- At porkbun.com/account/domains, click DNS next to your domain.


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

- Add three A records, each with your
YOURIPADDRESSas the answer:
| Type | Host | Answer |
|---|---|---|
| A | (leave blank) | YOURIPADDRESS |
| A | www |
YOURIPADDRESS |
| A | * |
YOURIPADDRESS |


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.
- Mac or Linux: open Terminal.
- Windows 10 or 11: open PowerShell or Windows Terminal. SSH is built in.

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.

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

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:
- One-click app installs
- An automatic reverse proxy (so each app gets its own web address)
- Free Let's Encrypt HTTPS certificates
- A firewall and fail2ban (bans IPs that keep guessing passwords)
- One login (SSO) for your users
- Built-in backup tools
You do not have to touch a reverse proxy or a certificate by hand. YunoHost does it all.

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.

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

Step 6: Set Up YunoHost and Get Your SSL Certificate
Post-install (one time):
- In your browser, open
https://YOURIPADDRESS. - Your browser warns that the connection isn't private. That's expected, because there's no real certificate yet. Click Advanced, then Proceed.

- Accept the terms.

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

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

This login does a lot. The username and password you pick here are your YunoHost admin login, your SSH login (the
rootlogin 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:
- Open the admin panel at
https://yourdomain.com/yunohost/adminand log in.

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


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

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.

Step 7: Install Nextcloud
Time for the base of the whole setup.
- In the YunoHost admin panel, click Applications, then Install an app.


- Search for Nextcloud and click Install.

- 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).

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

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

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:
- Go to Domains, then Add a domain, and enter something like
cloud.yourdomain.com. - Open the new domain and install a Let's Encrypt certificate (same as Step 6).
- 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:
- Click your profile picture, then Apps, and open Disabled apps.
- Find Two-Factor TOTP Provider and click Enable.
- Click your profile picture, then Personal settings, then Security.
- Under Two-Factor Authentication, click Enable TOTP.
- Scan the QR code with your authenticator app and type in the code it shows to confirm.
- 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:
- Open Nextcloud and click Files.

- Open Shared multimedia.

- Rename the Videos folder to Movies.

- Create a folder called TV Shows.


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

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
- Small uploads: Open the folder in Nextcloud in your browser and drag and drop.

- Big libraries: Install the Nextcloud desktop app (links in Step 15). Make a normal Nextcloud folder called
Temporary Media, sync it, drop your files in, and once they've uploaded, move them into the right Shared multimedia folder using Nextcloud in your browser. That avoids filling your computer's drive. - Careful: Don't delete synced files from your computer until they've uploaded and moved, because syncing mirrors deletions. To stop syncing safely, remove the folder's sync connection in the desktop app instead of deleting the files.
Step 11: Install Navidrome (Your Music)
Navidrome is a lightweight music server, and a great fit for phones.
- In the YunoHost admin panel, go to Applications, then Install an app, and search for Navidrome.


- Click Install. Use the path
/navidromeand choose your language.

- 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.
- Wait for it to finish, then open
https://yourdomain.com/navidrome.

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.


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.
- In YunoHost, go to Applications, then Install an app, and search for Jellyfin.

- Install it with the path
/jellyfin.

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

Add your libraries:
- Click your user icon, then Dashboard, then Libraries, then Add Media Library.



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


| 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 |


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

Turn on Quick Connect for easy TV logins:
- Go to Dashboard, then General, and make sure Quick Connect is enabled.
- On your TV, open the Jellyfin app and enter your server address:
https://yourdomain.com/jellyfin. - Choose Quick Connect. The TV shows a short code.
- 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.

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:
- Video: H.264 (HEVC works on most newer devices)
- Audio: AAC or AC3
- Container: MP4 or MKV
- Subtitles: external
.srtfiles. Image-based subtitles force the server to burn them in, which is slow
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.

First-time setup:
- In Nextcloud, click Memories in the top menu.
- The welcome screen asks which folder holds your photos. Choose a folder like
Photos(create one in Files if needed). - 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:
- Video transcoding in Memories is off by default. Leave it off on a small VPS unless you really need it, because it's heavy on the CPU. Most phone videos play fine as they are.
- You can fine-tune Memories under Nextcloud's Administration settings, then Memories.
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.
- In the YunoHost admin panel, go to Users, then New user.
- Give them a username and a strong password.
- 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.
- 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):
- Install the Nextcloud app and sign in to
https://yourdomain.com/nextcloud.




- Open the app's Settings, then Auto upload, and pick your camera folder.
- Set the upload destination to the
Photosfolder you chose for Memories in Step 13. - 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).
-
Go to Settings, then Calendar (or Contacts), then Accounts, then Add Account, then Other.
-
Add a CalDAV account (or CardDAV for contacts).
-
Server:
https://yourdomain.com/nextcloud/remote.php/dav/principals/users/YOURUSERNAME/ -
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.


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:
- YunoHost's own backup (your settings, databases and app configs)
- Your Nextcloud files and photos
- Your shared media folder (music, movies, shows)
A. Create your Backblaze bucket and key
- Create an account at backblaze.com, and make sure B2 Cloud Storage is enabled.
- Go to B2 Cloud Storage, then Buckets, then Create a Bucket. Give it a unique name and keep it Private.
- Copy the bucket's Endpoint. It looks like
s3.us-west-004.backblazeb2.com(yours may differ). - Go to Application Keys, then Add a New Application Key. Limit it to your one bucket.
- 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):
- Order a new Debian 12 VPS, point your domain at its IP, and install YunoHost (Steps 3 to 6) using the same domain.
- Install restic and recreate
/etc/restic-b2.envand/etc/restic-b2.password(from your password manager). - Restore the latest snapshot to a temporary folder:
sudo bash -c 'source /etc/restic-b2.env && restic restore latest --target /restore'. - 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 withsudo yunohost backup restore nightly. - 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/. - In the Nextcloud shell (
sudo yunohost app shell nextcloud), runphp occ files:scan --allso 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:
- If you use a different SSH port, add
-e "ssh -p YOURPORT". - I leave out
--deleteon purpose. That way, if you accidentally delete something on the server, the mistake doesn't wipe your archive copy. - It's safe to stop and run it again later. Rsync picks up where it left off.
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:
- [ ] Update. In the YunoHost admin panel, go to Tools, then System updates, and apply system and app updates. Reboot if it asks (
sudo reboot). - [ ] Check disk space. Run
df -hon the server. If it's above about 85% full, clean up or add storage. - [ ] Check your backups. Run
sudo bash -c 'source /etc/restic-b2.env && restic snapshots'and confirm there's a recent one. Runrestic checkthe same way. - [ ] Run the diagnosis. In the admin panel, go to Tools, then Diagnosis, and fix anything red that isn't email-related.
- [ ] Check your 2FA. Confirm your Nextcloud backup codes are still stored safely and your authenticator app still works.
- [ ] Once a year: do the rsync copy to your hard drive, and renew your domain.
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:
- One server at Contabo, managed through YunoHost, so installs, certificates, the reverse proxy, the firewall and updates are one-click jobs
- One domain from Porkbun, with every app reachable at its own address (
/nextcloud,/navidrome,/jellyfin) over HTTPS from anywhere in the world - Three apps that cover contacts, calendar, files, photos, videos, tasks, notes, music, shows and movies
- Nextcloud as the base, with a shared media folder that Navidrome and Jellyfin read automatically
- Security from a firewall, fail2ban, free HTTPS and 2FA on Nextcloud
- Three layers of backups: a Contabo snapshot, nightly encrypted backups to Backblaze, and a yearly copy on a drive you own
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
- My Self Hosted VPS Setup: the real setup I run every day
- How to Self-Host Nextcloud on a VPS
- How to Self-Host Jellyfin on a VPS
- How to Self-Host Navidrome on a VPS
- How to Self-Host Immich on a VPS, if you want a dedicated Google Photos replacement
- How to Block Ads with NextDNS
- GrapheneOS Apps I Use and Best GrapheneOS Apps to DeGoogle Your Life
- Tech I Use and About
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.