This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
how_to:restore_a_database_backup [2010/09/21 09:29] – created paul | how_to:restore_a_database_backup [2011/05/05 11:17] – password in bold for clarity simon | ||
---|---|---|---|
Line 5: | Line 5: | ||
- Open a command prompt, and go to the VPOP3 directory | - Open a command prompt, and go to the VPOP3 directory | ||
- If you are restoring the backup over an existing VPOP3 database (especially if the database files are damaged) you will need to DROP the database first. | - If you are restoring the backup over an existing VPOP3 database (especially if the database files are damaged) you will need to DROP the database first. | ||
- | - To do this, run pgsql\bin\dropdb -U postgres vpop3. When it prompts for the password enter the PostgreSQL master password - default pgsqlpass. | + | - To do this, run pgsql\bin\dropdb -U postgres vpop3. When it prompts for the password enter the PostgreSQL master password - default |
- Then you will need to recreate the database - run pgsql\bin\createdb -E SQL_ASCII -O vpop3 -U postgres vpop3 | - Then you will need to recreate the database - run pgsql\bin\createdb -E SQL_ASCII -O vpop3 -U postgres vpop3 | ||
- | - Run pgsql\bin\pg_restore -U postgres -C -d vpop3 DBBACK-< | + | - Run pgsql\bin\pg_restore -U postgres -C -d vpop3 DBBACK-< |