How to migrate from Cloud to Self-hosted?

What is the process from migrating from Strapi Cloud to self-hosted (PostgreSQL)? I would like to start using Strapi cloud but need to know if there is a way to self-host as a disaster recovery precaution. Is is possible to self-host the data from Cloud somewhere else (maybe using backups)?