nextcloud / previewgenerator

Nextcloud app to do preview generation in the background.
https://apps.nextcloud.com/apps/previewgenerator
GNU Affero General Public License v3.0
450 stars 55 forks source link

Changing the path for previews? #391

Closed closewall closed 1 year ago

closewall commented 1 year ago

Would it be possible for the preview generator to send preview files/thumbnails to a different directory/docker mapping?

I would like to keep my Nextcloud Data and thumbnails in separate locations for performance reasons. I would much rather have my Nextcloud previews generated on an SSD rather than my HDD array, but I don't see any settings for changing the directory.

pulsejet commented 1 year ago

I don't think that's something this app can fix, the preview generation happens in the server itself. I use something like this to keep the previews on SSD and data on RAID.

  app:
    ...
    volumes:
      - /faststorage/nextcloud:/var/www/html
      - /raidarray/ncdata:/var/www/html/data
      - /faststorage/nc_appdata_oc213fxr1cuh:/var/www/html/data/nc_appdata_oc213fxr1cuh
st3iny commented 1 year ago

What @pulsejet says is correct. All previews are saved in the appdata directory which is a child of the main data directory. It can't be moved separately. Your only option is to mount another volume/directory there.

The suggested workaround should work just fine.