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

2.png9.png1.png0.png7.png7.png1.png
Today33
Yesterday428
This week4618
This month9744
Total2910771

Visitor Info

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

Who Is Online

4
Online

niedziela, 19 maj 2024 01:12

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