Replace Google Drive with Nextcloud

30-45 minutes intermediate Replaces Google Drive
Configure your guide
How will you deploy Nextcloud?
Which cloud provider?
Do you need office document editing?

Provision your server

Create a VPS instance

You'll need at least 2 vCPUs, 4GB RAM, and 40GB storage for a small team (up to 20 users).

For larger deployments, consider dedicated storage volumes for your data directory.

Configure reverse proxy and SSL

Set up NGINX with Let's Encrypt

sudo apt install nginx certbot python3-certbot-nginx

# Create NGINX config
sudo nano /etc/nginx/sites-available/nextcloud

Add your server block with proxy_pass http://localhost:8080; and run:

sudo certbot --nginx -d cloud.yourdomain.com

Configure backups

Optional

Set up automated backups

Create a backup script that dumps the database and copies the data directory:

#!/bin/bash
DATE=$(date +%Y%m%d)
docker exec nextcloud-db-1 mysqldump -u root -pCHANGE_ME nextcloud > backup-$DATE.sql
tar czf nextcloud-data-$DATE.tar.gz /path/to/nextcloud_data
# Upload to offsite storage

Schedule with cron: 0 2 * * * /opt/backup-nextcloud.sh

/ Search Esc Clear ? Sitemap
24 tools / 3 guides / 9 resolved issues