tips
13 tips Nextcloud
One command, setting or habit at a time about Nextcloud: what it does, the line to copy and a caveat or two.
Apps and containers 13
-
Prints a small table with total, active and disabled accounts, split by user backend.
sudo -E -u www-data php occ user:report -
A dry run for app updates: see what is available before you update one app or all of them.
sudo -E -u www-data php occ app:update --showonly -
Filters the history of background jobs by status, so crashed and failed jobs stand out.
sudo -E -u www-data php occ background-job:history -s 3 -l 10 -
Stops changes to files and data while you copy or repair things.
docker exec --user www-data nextcloud php occ maintenance:mode --on -
Gets a locked out user back in without any email setup.
docker exec -it --user www-data nextcloud php occ user:resetpassword layla -
Shows new log entries while you reproduce a problem.
docker exec -it --user www-data nextcloud php occ log:watch -
Moves files to another account before you remove a user.
docker exec --user www-data nextcloud php occ files:transfer-ownership layla fred -
Switches off one two factor method so a locked out user can log in.
docker exec --user www-data nextcloud php occ twofactorauth:state layla -
Prints the setup warnings without opening the web admin page.
docker exec --user www-data nextcloud php occ setupchecks -
Shows or sets how large the Nextcloud trash bin may be, globally or per user.
sudo -E -u www-data php occ trashbin:size -
Lists the biggest items in a Nextcloud folder with their sizes.
sudo -E -u www-data php occ info:file:space /layla/files/Videos -
Makes Nextcloud run its heavy daily background jobs during a night window you choose.
docker exec -it --user www-data nextcloud php occ config:system:set maintenance_window_start --type=integer --value=1 -
Adds the database indices Nextcloud expects after an upgrade, so the admin warning disappears.
docker exec -it --user www-data nextcloud php occ db:add-missing-indices
Nothing in this filter yet.