---
title: "Discussion on \"Postgres Backup and Restore\" | Hashnode"
description: "Discussion on \"Postgres Backup and Restore\". For backing up a particular database in tar format\npg_dump -U postgres -h 127.0.0.1 -Ft dbname > dbname.tar\n\nIf you don't want to type password or use it inside script\nPGPASSWORD=pwd pg_dump -U postgres -h 127.0.0.1 -Ft dbname > dbname.tar\n\nBefore yo..."
url: "https://hashnode.com/posts/postgres-backup-and-restore/621f3c23f1a32619afa3883d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Postgres Backup and Restore](https://mindwings.hashnode.dev/postgres-backup-and-restore?utm_source=hashnode&utm_medium=feed)

For backing up a particular database in tar format pg\_dump -U postgres -h 127.0.0.1 -Ft dbname > dbname.tar If you don't want to type password or use it inside script PGPASSWORD=pwd pg\_dump -U postgres -h 127.0.0.1 -Ft dbname > dbname.tar Before yo...

Mar 2, 2022 · 1 min read · mindwings.hashnode.dev  
Read the article

## Written by

[Vinit Kumar](https://hashnode.com/@h4rdw1r3)

@h4rdw1r3 · India

  
[View profile](https://hashnode.com/@h4rdw1r3)

Engineer By Profession. Artist By Heart. Human By Character

I am developer from a small town in Bihar, India.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
