Thank you. I did it as suggested.
Restoring the system worked well: server is booting and running, even Dyndns is working.
Restoring the apps failed for most apps (e.g. lstu: errorlog).
So I am trying to update and install apps manually.
Do you have and suggestion to that error with sources.list?
# yunohost tools update
Info: Fetching available upgrades for system packages...
Warning: W: GPG error: https://packages.sury.org/php bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
Warning: E: The repository 'https://packages.sury.org/php bullseye InRelease' is not signed.
Error: Unable to update the cache of APT (Debian's package manager). Here is a dump of the sources.list lines, which might help identify problematic lines:
sources.list:deb http://deb.debian.org/debian bullseye main contrib non-free
sources.list:deb http://security.debian.org/debian-security bullseye-security main contrib non-free
sources.list:deb http://deb.debian.org/debian bullseye-updates main contrib non-free
sources.list.d/raspi.list:deb http://archive.raspberrypi.org/debian/ bullseye main
sources.list.d/yunohost.list:deb [signed-by=/usr/share/keyrings/yunohost-archive-keyring.gpg] http://forge.yunohost.org/debian/ bullseye stable
sources.list.d/extra_php_version.list:deb https://packages.sury.org/php/ bullseye main
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
I tried to regenerate the sources.list, but no list file was updated. sudo yunohost tools regen-conf apt -f
Having to install all the apps again, I think the only advantage of the migration (compared to an ordinary new installation on Pi 4) is that Dyndns was working out of the box.
I do not know why but there are no log files from my initial attempt to restore the apps.
Having migrated to ynh 12.0.6 in the meantime and reinstalled most apps (eg. nextcloud, wallabag) I cannot try the restore again.