How to save a lot of storage space on your long-running Nextcloud instance

If you happen to run a self-hosted Nextcloud instance for several years, and happen to watch or share a lot of photos through its web application, you might benefit from this tip:

Have a look at the size of folder data/appdata_<random-part>/preview. On my instance, it had grown larger than an single user’s whole files. The solution, as posted by user Rulizer on Github back in 2018, is to purge the image preview cache:

  1. Delete folder preview in data/appdata
  2. occ files:scan-app-data

Step 2 might take some time to complete (it took about 10 minutes in my case). The only downside is that now all image previews need to be regenerated once.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.