Steps to take postgreSQL database backup

kumkumsharma

Administrator
Staff member
You have to use following command to take backup :

You can use below command to take backup of postgresql database.

Code:
pg_dump mydb > db.out
You can use this command to restore database

Code:
psql -d database -f db.out
 
Top