I am trying to use preview-generator, but it does not recognize new images.
Images are usually synced to my nextcloud installation via a script that starts rsync, and after actuallay syncing something (
if [[ $FILES_DEL -gt 0 ]] || [[ $FILES_ADD -gt 0 ]]; then) my script does two ssh commands on the machine where nextcloud is installed.
The first command is
...pathtoinstallation.../nextcloud/occ files:scan --all
which is working fine, and second:
...pathtoinstallation.../nextcloud/occ preview:pre-generate -vvv
preview:pre-generate -vvv does nothing at all (no output; counting folders in appdata_1234…/preview before and after pre-generate stays the same; after seeing new images in the browser, counting folders results in “showing” the new previews).
If I do the command locally, without ssh -c from a remote machine, the result is the same.
preview:generate-all works just fine, but takes a really long time for about 40k files (does it really create all new, or does it recognize which previews have to be added?)
I hoped, “occ files:scan --all” would be enough to make “preview” aware…is there any other way to get preview to know of these rsynced files?