This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
how_to:database_maintenance [2013/09/09 10:17] – [Alternative to backup/restore] paul | how_to:database_maintenance [2015/09/23 13:46] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 27: | Line 27: | ||
* Stop the VPOP3 service, //not// the VPOP3DB service | * Stop the VPOP3 service, //not// the VPOP3DB service | ||
* Go to a command prompt in the VPOP3 directory | * Go to a command prompt in the VPOP3 directory | ||
- | * Backup the database to a file, eg ' | + | * Backup the database to a file, eg ' |
- | * Remove the old database using **pgsql\bin\dropdb -U postgres -p 5433** | + | * Remove the old database using **pgsql\bin\dropdb -U postgres -p 5433 vpop3** |
- | * Restore the database backup using, eg: **pgsql\bin\pg_restore | + | * Restore the database backup using, eg: **pgsql\bin\pg_restore -v -j 4 -U postgres -p 5433 -C -d postgres database.dmp** |
* Restart the VPOP3 service | * Restart the VPOP3 service | ||