Full Backup
Creating database backups is essential in any server setup in case of a server crash or if a modification goes wrong and data is accidentally deleted. The file must be dumped as a sql fileYou must be logged in as a superuser to preform any backups and the file must be created with a sql extension.
pg_dumpall > backupfile.sql
...