The way I moved our entire #yunohost server from one bad drive to another was a lot easier than using the Yunohost backup and restore methods.
Our server has 2 drives. 1 x Nvme of 1TB (where we store Yunohost basically and boot from it), and 2x 4TB HDD merged into a single 8TB one, where we host the data for our Peertube and Nextcloud.
The Nvme was dying.
Solution? ddrescue!
Basically I booted into a rescue system (debian) via Hetzner's dashboard. Made sure the Nvme was unmounted. Mounted the 8TB HDD. And created an image file of the entire system of the bad Nvme to the 8TB HDD. Took around 2 hours.
Then asked the Hetzner team to replace the Nvme. Now again boot into recovery mode and simply restore the image to the new Nvme.
Worked like a charm! Restored everything...partitions, databases, driver's IDs....all!
4-5h to move it all. Sure more hours in total but the image creation and restoration was not long.
Rebooted and we are back!
It was much easier than to restore 10+ applications with huge databases.
So now our TROM.tf is back with our services....Nextcloud, Peertube, Friendica, and more....
I so recommend this approach if you are in a similar situation!