User Tools

Site Tools


how_to:restore_a_backup_of_vpop3

This is an old revision of the document!


How to Restore a backup of VPOP3

Version 3 or later

If you just need to restore a database backup, see steps 4 to 6 below.

To restore a full backup of VPOP3,

  1. If VPOP3 is already installed, make sure VPOP3 is shut down before starting the restore process
  2. Restore the files you made when you backed up VPOP3 - do NOT restore anything in the VPOP3\pgsql folder tree
  3. Restore the registry backup you made as well by double-clicking on the .REG file you made
  4. Reinstall VPOP3 into the location where you restored VPOP3. This should reinstall the PostgreSQL database system. Do not start VPOP3 at this time
  5. Open a command prompt, and go to the VPOP3 directory
  6. 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.
  7. Run pgsql\bin\pg_restore -U postgres -C -d postgres DBBACK-<number>.DMP where <number> is the latest number of the database backup made by VPOP3. When it prompts for a password enter the PostgreSQL master password - default pgsqlpass. Note that during this step you may see a couple of errors which are not important: there may be an error about the database already existing, and also an error that the 'plpgsql' language is already installed. (Each of these errors may have several lines in the output). If there are lots of errors, then there may be a problem and you should contact support@pscs.co.uk.
  8. Start VPOP3

You may also want to Restore a single user's mailbox or mail folder

Version 2.6 or earlier

To restore a backup of VPOP3,

  1. If VPOP3 is already installed, make sure VPOP3 is shut down before starting the restore process
  2. Restore the files you made when you backed up VPOP3
  3. Restore the registry backup you made as well by double-clicking on the .REG file you made
  4. Reinstall VPOP3 into the location where you restored VPOP3.
how_to/restore_a_backup_of_vpop3.1319026158.txt.gz · Last modified: 2018/11/14 10:44 (external edit)