Backup and restore home assistant docker

Tags: #<Tag:0x00007fc42112c630>

So long story short I installed supervised home assistant onto a raspberry pi 4 via docker. How do I make a full backup of everything in docker?(I imagine it’s just home assistant at this point) and how do I then restore that image on a reformatted raspberry pi? (Let’s be real, these sd cards I keep buying will eventually make this necessary.)