5 ways to backup
5 Tips to Backup and Restore Database in PostgreSQL Written by Rahul K. PostgreSQL backup , database , pg_dump , PostgreSQL , psql , restore 4 Comments PostgreSQL database server provides pg_dump and psql utilities for backup and restore databases. This article will describe various ways to use of pg_dump command to backup database. Also you will learn how to restore datbase backup. Backup and Restore Database in PostgreSQL Below is some connections options which you can use for connecting remote server or authenticated server with all queries given in this article. -d, –dbname=DBNAME database name -h, –host=HOSTNAME database server hostname or ip -p, –port=PORT database server port number (default: 5432) -U, –username=NAME connect as specified database user -W, –password force password prompt –role=ROLENAME do SET ROLE before dump 1. Backup and Restore Single Database Backup: single database in PostgreSQL. Replace your actual database name w...