Connect external storage without scanning and preview generation?

Support intro

Usecase:

  • Nextcloud on a local server with four SMB shares
  • integration of local shares via External Storage support → SMB/CIFS
  • cronjob every night:
    • files:scan --all
    • preview:generate-all

=> So far so good!

I have an external server in another city, where I need to transfer some files sometimes. This server has WebDAV shares. But I am not interested in these files in detail. Most of the time I just upload files.

Need:

  • Integration of one of these shares into my Nextcloud Instance

BUT:

  • I dont want them to be scanned
  • I dont want to create previews for this share
    => This server is HUGE. This would increase my Database by Factor 10 and I dont need these files in my database.

Any Ideas how to do this?

Nextcloud version (eg, 29.0.5): 29.0.3 AIO
Operating system and version (eg, Ubuntu 24.04): 29.0.3 AIO
Apache or nginx version (eg, Apache 2.4.25): 29.0.3 AIO
PHP version (eg, 8.3): 29.0.3 AIO

The issue you are facing: see above

Is this the first time you’ve seen this error?: Y

Steps to replicate it: see above

The output of your Nextcloud log in Admin > Logging:

n/A

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

n/A

The output of your Apache/nginx/system log in /var/log/____:

n/A

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

n/A

See mount options: Configuring External Storage (GUI) — Nextcloud latest Administration Manual latest documentation

I already tested to disable “Previews” in mount options, but anyways: preview requests are sent to imaginary docker when I open folders of the share :frowning:

Any hints, why this is like this?
Or any other ideas?