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.png1.png3.png0.png6.png2.png9.png
Today880
Yesterday890
This week7978
This month27842
Total3130629

Visitor Info

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

Who Is Online

1
Online

piątek, 28 luty 2025 14:00

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