Android 11. I made a backup of my Internal Storage using this:
adb exec-out 'tar --create --exclude=data/media/0/TWRP \
data/media/0 2>/backup-errors.txt | \
gzip' | \
dd of=sdcardbackup-$(date +%Y%m%d).tar.gz && \
adb shell cat /backup-errors.txt
But how do I restore that directly to my internal storage after formatting?