Application level backup
See Domain Backup guide or use video tutorial below
Database level backup
There are three fundamentally different approaches to backing up PostgreSQL data:
File system level backup
Each has its own strengths and weaknesses; each is discussed on the PostgreSQL documentation pages.
The most common is the SQL dump, which backups the database contents using the dump command:
Copy the backup file to your new system and restore it in the target database: