User Tools

Site Tools


reference:database_restore

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
reference:database_restore [2012/08/17 10:12] paulreference:database_restore [2013/02/08 08:49] – [Cleaning Up] paul
Line 11: Line 11:
 To restore a backup to a temporary database on the VPOP3 computer, go to a command prompt in the VPOP3\pgsql\bin folder and run a command like To restore a backup to a temporary database on the VPOP3 computer, go to a command prompt in the VPOP3\pgsql\bin folder and run a command like
  
-  [[http://www.postgresql.org/docs/9.1/static/app-createdb.html|createdb]] -U postgres -E SQL_ASCII -p 5433 -T template0 vpop3temp+  createdb -U postgres -E SQL_ASCII -p 5433 -T template0 vpop3temp
 (password ''pgsqlpass'') (password ''pgsqlpass'')
  
Line 17: Line 17:
  
 Then, run a command like: Then, run a command like:
-  [[http://www.postgresql.org/docs/9.1/static/app-pgrestore.html|pg_restore]] -U postgres -p 5433 -d vpop3temp -j 4 -v dbback.dmp+  pg_restore -U postgres -p 5433 -d vpop3temp -j 4 -v dbback.dmp
 (password ''pgsqlpass'') (password ''pgsqlpass'')
  
Line 46: Line 46:
 Go to a command prompt in the VPOP3\pgsql\bin folder and run a command like Go to a command prompt in the VPOP3\pgsql\bin folder and run a command like
  
-  [[http://www.postgresql.org/docs/9.1/static/app-dropdb.html|dropdb]] -U postgres -p 5433 vpop3temp+  dropdb -U postgres -p 5433 vpop3temp
 (password ''pgsqlpass'') (password ''pgsqlpass'')
  
reference/database_restore.txt · Last modified: 2018/11/14 10:45 by 127.0.0.1