NextCloud
Documentation
https://github.com/nextcloud/nextcloud-snap/wiki
Installation
Yeah, you could go through the manual process of installing all the various many elements, or you could just use snap...
sudo install snapd sudo snap install nextcloud sudo nextcloud.enable-https lets-encrypt (sudo nextcloud.enable-https self-signed)
That's it.
How to install Nextcloud 15 on Ubuntu Server 18.04
Move Data Directory
For example, to AWS EFS...
Mount your EFS in the folder /mnt/efs, then...
mkdir -p /mnt/efs/nextcloud snap enable nextcloud snap stop nextcloud snap connect nextcloud:removable-media nano /var/snap/nextcloud/current/nextcloud/config/config.php ('datadirectory' => '/mnt/efs/nextcloud/data',) snap disable nextcloud rsync -av --delete /var/snap/nextcloud/common/nextcloud/ /mnt/efs/nextcloud/ chown -R root:root /mnt/efs/nextcloud/ chmod -R 0770 /mnt/efs/nextcloud/ ll /mnt/efs/nextcloud/ snap enable nextcloud snap start nextcloud
https://help.nextcloud.com/t/snap-install-external-storage-local-configuration/1519/9
Key part of page above is the snap connect :-)
https://github.com/nextcloud/nextcloud-snap/wiki/Change-data-directory-to-use-another-disk-partition
Copy Large Data
After you have transferred large files, you need to get NextCloud to scan the folder...
cd /var/www/nextcloud sudo -u www-data php console.php files:scan --all
Full instructions here...
https://help.nextcloud.com/t/tutorial-how-to-migrate-mass-data-to-a-new-nextcloud-server/9418
CLI Commands
nextcloud.occ
Log Files
https://github.com/nextcloud/nextcloud-snap/wiki/Where-to-find-logs-of-components
Reset Lost Admin Password
https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/reset_admin_password.html
Trusted Domains
Security in NextCloud has been tightened and so to allow all of your local network to access the server, you have to edit the config file on the command line and add the network IP address or range...
nano docker/stacks/nextcloud/data/config/www/nextcloud/config/config.php 'trusted_domains' => array ( 0 => '127.0.0.1:4443', 1 => '192.168.0.*', ),
Remove app and delete all its settings
https://help.nextcloud.com/t/remove-app-and-delete-all-its-settings/80808
https://help.nextcloud.com/t/how-to-remove-apps-from-the-terminal/63569