Category: Nextcloud

Nextcloud: move/import Notes

How to move all Notes from an instance or backup to a new Nextcloud instance:

Move/copy the Notes folder, typically /www/var/nextcloud/<user>/files/Notes to the new instance, Notes app must be already installed.

Then, on the destination instance, trigger the file scan to rebuild the file cache:

cd /var/www/nextcloud
sudo -u www-data php occ files:scan -p <user>/Notes --all -v


NextCloud: remove “Get your own free account” share URL

Add this in /path/to/nextcloud/config/config.php:

 'simpleSignUpLink.shown' => false,

On Ubuntu we need to edit with www-data user rights:

sudo -u www-data nano config.php

Nextcloud notes

LOG file location

By default, a log file named nextcloud.log will be created in the directory which has been configured by the datadirectory parameter in config/config.php.

LOG file clear
truncate /nextcloud.log --size 0
Maintenance mode
sudo -u www-data php occ maintenance:mode --on
sudo -u www-data php occ maintenance:mode --off
Empty the trashbin

Maintenance mode mode be off.

sudo -u www-data php occ trashbin:cleanup <user1> <user2> ... <userN>
sudo -u www-data php occ trashbin:cleanup --all-users
Launch the updater manually
cd /var/www/<nextcloud_dir>
sudo -u www-data php updater/updater.phar
Apps disabled after “sudo -u www-data php occ upgrade” command

in case we get a list of disabled app:

Disabled incompatible app: calendar
Disabled incompatible app: contacts
Disabled incompatible app: notes
Disabled incompatible app: ocsms

simply reinstall them one by one manually:

sudo -u www-data php occ app:install calendar

WordPress Themes