Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

restore backup "text" postgresql command line

-- My solution was using DBeaver without using commands

psql -U username -d dbname < filename.sql

-- For Postgres versions 9.0 or earlier
psql -U username -d dbname -1 -f filename.sql
Source by coderedirect.com #
 
PREVIOUS NEXT
Tagged: #restore #backup #postgresql #command #line
ADD COMMENT
Topic
Name
7+6 =