Quantcast
Viewing all articles
Browse latest Browse all 24

How to backup postgresql database in windows

How to backup PostgreSQL database in windows

I almost lost a 3.4 Million worth of client data  because I was not making proper PostgreSQL backups regularly! This was as a result of not knowing exactly how to do it. So I had to learn a simple way to do a backup of my PostgreSQL. And in this short tutorial I will show you how to backup  PostgreSQL database in windows using Pg Admin.

How to backup PostgreSQL Database in Windows using PgAdmin

  • Open PgAdmin and Login to your Server

Image may be NSFW.
Clik here to view.
postgreSQL database backup-login

  • Right click on the database you want to backup and select backup as shown below

Image may be NSFW.
Clik here to view.
postgreSQL database backup

  • Click on the browse button with the dots

Image may be NSFW.
Clik here to view.
postgreSQL database backup- browse

  • Select a location where to dump the database backup and give a name to your backup file. Click save

Image may be NSFW.
Clik here to view.
postgreSQL database backup-database name and location

  • Under the Format drop down choose Tar as shown below. Leave everything else as default.

Image may be NSFW.
Clik here to view.
How to backup PostgreSQL database in Windows using PgAdmin

  • Click on backup button to backup your PostgreSQL database. When the process completes click on done.

Image may be NSFW.
Clik here to view.
How to backup PostgreSQL database in Windows using PgAdmin

  • Database Backup File

Image may be NSFW.
Clik here to view.
How to backup PostgreSQL database in Windows using PgAdmin

 

Now you are safe. In the next tutorial I will show you how to restore the PostgreSQL backup you have just made.

 

 

 

The post How to backup postgresql database in windows appeared first on Smart Tech Diary.


Viewing all articles
Browse latest Browse all 24

Trending Articles