r/NextCloud • u/reiggg • 1h ago
How I self-host NextCloud on a cheap VPS with HTTPS and scheduled backups
Disclosure up front: I built the tool this setup uses (ShipperKit, open source and MIT licensed). Mods, remove this if it doesn't fit here.
Getting NextCloud running is the easy part. Keeping it running is where I kept losing evenings: trusted domains, reverse proxy headers and background jobs. This is the setup I use now on a single VPS.
What you need
- A server running Ubuntu 22.04/24.04 or Debian 12/13, x86-64 or ARM64
- 2 GB of RAM or more
- Ports 80, 443 and 8080 open
- A domain with an A record pointing at the server, like
nextcloud.yourdomain.com
1. Install ShipperKit
curl -fsSL https://shipperkit.dev/install.sh | sudo bash
Open the address it prints, paste the setup token and create your account.
2. Deploy NextCloud
Open the Service Library, search for NextCloud and pick Nextcloud with MariaDB. Enter nextcloud.yourdomain.com as the domain and deploy. The secrets and database passwords are generated for you, and HTTPS comes from Let's Encrypt automatically.
3. Set up backups before you put real data in
Add a backup schedule for the data volume and the MariaDB database. You can store backups on the server itself or in any S3-compatible bucket (Backblaze B2, Cloudflare R2, Wasabi). Restore one as a separate copy once, so you know the restore actually works before you need it.
NextCloud-specific things to watch for
- Check the admin overview page after deploying and fix any proxy warnings it shows
Repo: https://github.com/matyas-toth/shipperkit Website: https://shipperkit.dev Happy to answer questions about running NextCloud on it, or about self-hosting NextCloud in general.




