How to backup and restore PostgreSQL database of On-Premise application

Hi All,   I have an On-Premise application running with PostgreSQL database. I want to take a backup of the both database and the file documents. Can someone share the steps how to take a backup and also restore if something goes wrong with my future deployments.
1 answers

For on premise  installation file documents path are define by developer. So accordingly you can take a backup of that location.