About making backups and migrating data

I read the document about making backups and migrating data. I have some doubts and ask for your help. This document introduces how to migrate, but I want to save the platform information and maybe deploy it later. What should I do? I don’t want to lose any data. For example, when I deploy again, I hope to have the same courses and registration information