INFORMATICS

The Best

Przełącznik języka

Zaproś mnie na KAWE

Jeżeli podoba Ci się strona i chcesz wspomóc projekt!

Postaw mi kawę na buycoffee.to

This Site

Płatnik

CMS

Hardware

Uncategorised

Emulators

Powershell

Storage Array

DNS

Antivirus program

Licznik

3.png5.png1.png7.png7.png3.png5.png
Today123
Yesterday988
This week10458
This month16325
Total3517735

Visitor Info

  • IP: 10.1.241.191
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

3
Online

niedziela, 15 marzec 2026 03:32

How to restore PostgreSQL database from .tar file

Gwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywna
 

How to restore PostgreSQL database from .tar file

pg_restore -c -U postgres -d client03 -v "/tmp/client03.tar" -W

-c to clean the database
-U to force a user
-d to select the database
-v verbose mode, don't know why
"$$" the location of the files to import in tmp to get around permission issues
-W to force asking for the password to the user (postgres)

Search