Migration Guides

Migrating Nextcloud to AnubizHost

Nextcloud is the leading self-hosted file sync platform and migrates cleanly between hosts via its data directory, database, and config files. This guide walks through moving a Nextcloud install to an AnubizHost offshore VPS or storage VPS with full client continuity.

Need this done for your project?

We implement, you ship. Async, documented, done in days.

Start a Brief

Inventory the Nextcloud Install

From the source, run sudo -u www-data php occ config:list system to capture the config. Note the data directory (typically /var/www/nextcloud/data), database (MariaDB or PostgreSQL), Nextcloud version, and any enabled apps.

For data sizes over 100GB, plan a parallel rsync strategy. For multi-TB installs, consider AnubizHost storage VPS or dedicated for the destination.

Provision and Set Up AnubizHost Target

Order offshore VPS with enough disk for the Nextcloud data plus 20% headroom. Install LEMP + MariaDB/PostgreSQL + PHP modules required by Nextcloud: apt install nginx mariadb-server php8.2-fpm php8.2-mysql php8.2-gd php8.2-curl php8.2-xml php8.2-mbstring php8.2-zip php8.2-bcmath php8.2-imagick php8.2-intl.

Install matching Nextcloud version from official source. Don't run the web installer - we'll restore config from the source.

Transfer Data, Database, and Config

Put source Nextcloud into maintenance mode: sudo -u www-data php occ maintenance:mode --on. Dump the database:

mysqldump --single-transaction --routines --triggers nextcloud > nc-db.sql

Rsync the data directory and the config:

rsync -avHAX /var/www/nextcloud/data/ root@NEW_IP:/var/www/nextcloud/data/
rsync -avHAX /var/www/nextcloud/config/ root@NEW_IP:/var/www/nextcloud/config/

Restore the database on the target. Disable maintenance mode on the new install: sudo -u www-data php occ maintenance:mode --off.

Update Trusted Domains and Cut Over

Update config.php: trusted_domains should include the new IP/hostname; datadirectory points at the new data path. Run sudo -u www-data php occ db:add-missing-indices. Flip DNS A records. Re-issue Let's Encrypt.

Mobile and desktop Nextcloud clients reconnect automatically once DNS propagates - the URL stays the same.

Why Nextcloud on AnubizHost Offshore

Nextcloud is often used for privacy-sensitive file storage. Hosting on AnubizHost offshore gives jurisdictional protection (Romania, Iceland) and crypto-only billing. End-to-end encryption apps within Nextcloud add another protection layer. Related reading: offshore storage, anonymous hosting, encrypted backups.

Why Anubiz Host

100% async — no calls, no meetings
Delivered in days, not weeks
Full documentation included
Production-grade from day one
Security-first approach
Post-delivery support included

Ready to get started?

Skip the research. Tell us what you need, and we'll scope it, implement it, and hand it back — fully documented and production-ready.

Anubiz Chat AI

Online
How to Migrate Nextcloud to AnubizHost Offshore