Ok so I did it. I will post here in case others face the same situation.
- I made backups for all of the apps and the YNH install with Borg.
- I bought a dedicated server from Hetzner who still provides Debian 11 images.
- I installed the older YNH there with
curl https://install.yunohost.org/bullseye | bash
- Installed Borg, connected to Borgbase where my backups were.
- Restored all backups from BorgBase.
- Go to
/etc/yunohost/migrations.yml
and if the migration to Bookworm is set as “skipped” edit it and add “pending”. Else YNH thinks there is no migration to do. - Go to the YNH admin and run the updates and migrations.
- After all is done, voilla, you have the new YNH and Debian 12 running.
I also moved them back to Webdock (hosting) after the migration.
But well this is how I fixed it.