Skip to content

Manually Scan Files

Note

This is useful if you do a mass copy/import of files into your Nextcloud data directory - without it they will not show up in the web UI.

  1. Make sure the Nextcloud and MariaDB (or whatever DB you are using) are both stopped.
  2. Copy the files into the Nextcloud data directory where you want them to be.
  3. From within the container or VM where Nextcloud is installed, run the following command to kick off a manual scan:

    occ files:scan --all
    
  4. Wait for the scan to complete, and then you can start the Nextcloud and MariaDB containers/VM.

  5. If the srver is in maintenance mode, change directory to the config/www/nextcloud/config directory:

    cd /config/www/nextcloud/config
    
  6. Open the config.php file in your editor of choice and find the line in the file that contains the maintenance flag and set it to false