How to make Nextcloud apps (Collectives, Notes, Bookmarks, Cookbook) recognize existing files after AIO reinstall?

Hi everyone,

I recently performed a clean reinstall of Nextcloud AIO (Autumn release, v11.11.0, Nextcloud 32.0.1) and restored my data folder manually.
All files from the previous instance are physically present in their correct locations on disk.

The synchronization works fine in the Files app – all these directories and files appear there –
but none of the corresponding apps (Collectives, Notes, Bookmarks, Cookbook) show their content anymore.

It looks like each of these apps stores metadata and relationships (IDs, ownership, sharing, etc.) in the database (tables like oc_collectives_*, oc_notes_*, etc.), and after a fresh AIO installation these links are gone.


My question:

Is there any supported or semi-supported way to make these apps recognize existing filesystem data again,
either by:

  • running a CLI command like occ collectives:index or notes:scan that rebuilds DB records from the filesystem,

  • or by restoring only the relevant app tables from an old database dump (without touching everything else)?

I’d prefer not to manually recreate every note / recipe / bookmark / collective if possible.


Environment:

  • Nextcloud AIO 11.11.0 (Autumn)

  • Nextcloud 32.0.1

  • Ubuntu 24.04 (Docker-based)

  • Apps affected: Collectives, Notes, Bookmarks, Cookbook


Goal:

Find out if there’s a safe way to relink existing data on disk to new DB records,
or confirm if this is fundamentally impossible without the original database.

Thanks in advance to anyone who has gone through this before or can explain the correct approach.