User Tools

Site Tools


how_to:v5_-_move_to_a_new_pc

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
how_to:v5_-_move_to_a_new_pc [2013/09/18 09:28] – [If you had previously installed VPOP3 on the new computer] paulhow_to:v5_-_move_to_a_new_pc [2018/11/14 10:45] – external edit 127.0.0.1
Line 22: Line 22:
 =====Backup the database===== =====Backup the database=====
 To backup the database, go to a command prompt on the VPOP3 computer, and go to the VPOP3 directory. Then run To backup the database, go to a command prompt on the VPOP3 computer, and go to the VPOP3 directory. Then run
-  pgsql\bin\pg_dump -F c -p 5433 -U vpop3 -f database.dmp+  pgsql\bin\pg_dump -F c -p 5433 -v -U vpop3 -f database.dmp vpop3
 //Note: the above line (and all subsequent database command lines on this page) assume port 5433 is being used. This will work in the majority of cases, but in certain circumstances, a different port number may be required.// //Note: the above line (and all subsequent database command lines on this page) assume port 5433 is being used. This will work in the majority of cases, but in certain circumstances, a different port number may be required.//
  
Line 46: Line 46:
   * If you are wanting to install a later version of VPOP3 as well as moving VPOP3, then at this step you would install the later version rather than the original version.   * If you are wanting to install a later version of VPOP3 as well as moving VPOP3, then at this step you would install the later version rather than the original version.
 =====Restore the Database Backup===== =====Restore the Database Backup=====
-On the new PC, open up a command prompt and go to the VPOP3 directory. Then run+First, **delete the DBCHANGES.DAT file** from the VPOP3 directory (if it exists). This contains settings changes wanted by the installer, but they will overwrite the restored data, so you do not want them to take effect in this scenario. 
 + 
 +Then, on the new PC, open up a command prompt and go to the VPOP3 directory. Then run
  
   pgsql\bin\pg_restore -p 5433 -U postgres -C -v -d postgres database.dmp   pgsql\bin\pg_restore -p 5433 -U postgres -C -v -d postgres database.dmp
how_to/v5_-_move_to_a_new_pc.txt · Last modified: 2023/02/08 10:48 by paul