How to clone a rooted device


Sep 18, 2021
Hi, I need to send the Mi 11 Ultra to a service station because of Ghost-touch-issues.
How can I make a full clone of it? With TWRP I already backuped system, data and boot. I also need the boot because that was patched for root.
There is still missing /data/media, would I just do adb pull on that? Or can I make an image of it to be sure that permissions and stuff is identical?

What else would be required for the case I need to restore all on a new (identical) device for the case the service is not successful?