Linux

Where Does Nextcloud Memories Store Index and Previews?

Memories keeps index in the Nextcloud database and previews in appdata preview. Timeline files stay in user storage.

Last updated

Memories layers on Nextcloud storage rather than keeping its own library. Photos stay in user files, the face and timeline index lives in the Nextcloud database tables, and generated previews cache under appdata preview in the data directory.

App settings ride in config.php under memories keys plus occ config commands. The preview generator and the recognizer queue write into the same cache tree. Backups must pair database dumps with the data dir or restores mismatch. Recognizer models download into appdata on first classify run.

Where Nextcloud Memories stores this, by platform

Linux
/var/www/nextcloud/data/appdata_oc123456/preview

Generated preview cache keyed by file id. The biggest disk user. Prune with occ preview cleanup when space runs out.

Linux
/var/www/nextcloud/config/config.php

Instance config with memories keys for paths, viewers, and workers. Edit by hand or with occ config commands.

Frequently asked questions

How do I back up Memories data?

Back up the Nextcloud database plus the data directory together. The index rebuilds from files but faces and places do not.

How do I pregenerate previews?

Run occ preview generate in batches. Previews land in appdata preview keyed by file id, so bulk generation is a cron job, not a click.

Notice an outdated path? Let us know.