Thursday, April 24, 2014

How to back up & restore postgres database?

pg_dump is the functionality  provided by Postgres to take the backup of database

Usage:
If the intent is create database while restoring 
pg_dump -f <fileName> -U <user name> --create <databaseName>

No comments:

Post a Comment