Difference between revisions of "Pg restore"

From wikieduonline
Jump to navigation Jump to search
Line 18: Line 18:
 
* <code>[[pg_dump]]</code>
 
* <code>[[pg_dump]]</code>
 
* [[Restore DB]]
 
* [[Restore DB]]
 +
* [[psql --host]]
  
 
== See also ==
 
== See also ==

Revision as of 04:47, 3 May 2023


pg_restore --jobs="${numcores}" --format=directory --dbname=cexplorer "${tmp_dir}/db/"


cat filename.tgz | tar -xzOf - path/to/filename.backup | pg_restore -U username -d databasename


cat filename.tgz | tar -xzO path/to/filename.backup | pg_restore -U username -d databasename


pg_restore --help

Related

See also

Advertising: