How to clean up nextcloud-data/appdata_* and /updater-*

As I linked above you can adjust config, my current config is:

Read more about:
https://ownyourbits.com/2019/06/29/understanding-and-improving-nextcloud-previews/

And than you need to regenerate previews again:

Short summery from the Github:

To “reset” the preview cache

  1. Stop Webserver (apache / nginx)
  2. Moved the appdata_instaceName/preview folder outside the appdata folder. You can just remove it if you are confident.
  3. Run sudo -u www-data /usr/bin/php /var/www/nextcloud/occ files:scan-app-data to fix database
  4. Start Webserver and Test everything works
  5. Finish up (delete moved folder, etc).
  6. Run pregenerate command afterwards.
2 Likes