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:v5_-_move_to_a_new_pc [2012/03/23 11:37] – [Move VPOP3 Version 5 (or later) to a new PC] paul | how_to:v5_-_move_to_a_new_pc [2013/10/17 16:05] – [Restore the Database Backup] paul | ||
---|---|---|---|
Line 10: | Line 10: | ||
- Check settings on new PC | - Check settings on new PC | ||
- Start VPOP3 on the new PC | - Start VPOP3 on the new PC | ||
+ | - Disable VPOP3 on the old PC if necessary | ||
Please make sure you follow these instructions in the correct order. Many problems with moving installations are because people have thought we have got it wrong, and so do things in a different (incorrect) order. | Please make sure you follow these instructions in the correct order. Many problems with moving installations are because people have thought we have got it wrong, and so do things in a different (incorrect) order. | ||
Line 39: | Line 40: | ||
=====Install VPOP3 on the new PC===== | =====Install VPOP3 on the new PC===== | ||
Install VPOP3 on the new PC as normal, but: | Install VPOP3 on the new PC as normal, but: | ||
- | | + | |
- | - At the end of the install, make sure you **uncheck** the **Start VPOP3** option, so that VPOP3 does not run | + | |
+ | * During the component selection stage of the installation, | ||
+ | * At the end of the install, make sure you **uncheck** the **Start VPOP3** option, so that VPOP3 does not run | ||
+ | * 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. | + | First, **delete the DBCHANGES.DAT file** from the VPOP3 directory |
- | pgsql\bin\pg_restore -p 5433 -U postgres -d vpop3 database.dmp | + | Then, on the new PC, open up a command prompt and go to the VPOP3 directory. Then run |
- | At the command | + | pgsql\bin\pg_restore -p 5433 -U postgres -C -v -d postgres database.dmp |
+ | |||
+ | At the password | ||
This will import the data to the database system on the new PC | This will import the data to the database system on the new PC | ||
Line 64: | Line 69: | ||
In this case, you will need to create the VPOP3 database again during the restore: | In this case, you will need to create the VPOP3 database again during the restore: | ||
- | pgsql\bin\pg_restore -p 5433 -U postgres -C -d postgres database.dmp | + | pgsql\bin\pg_restore -p 5433 -U postgres -C -v -d postgres database.dmp |
- | + | ||
- | (note the change from the normal restore procedure from '' | + | |
At the command prompt, enter '' | At the command prompt, enter '' | ||
+ | |||
+ | ====Moving installation directory==== | ||
+ | If you are installing VPOP3 in a different directory on the new PC than it was on the old PC, you need to change some settings. | ||
+ | |||
+ | This needs a little utility. You can download it from http:// | ||
+ | |||
+ | At a command prompt, find the VPOP3 installation directory and run | ||
+ | vpop3settings replacepaths <old path> <new path> | ||
+ | | ||
+ | e.g. Run | ||
+ | vpop3settings replacepaths c:\vpop3 d:\vpop3 | ||
+ | | ||
+ | The utility will display all the settings which used the old location and ask if you want to change them to the new location. Check the settings, and press ' | ||
Line 76: | Line 92: | ||
=====Start VPOP3===== | =====Start VPOP3===== | ||
Finally [[start VPOP3]] | Finally [[start VPOP3]] | ||
+ | |||
+ | =====Disable VPOP3 on the old PC===== | ||
+ | If the old PC will still be being used for other things, and you do not want VPOP3 to run on it, you should disable VPOP3 on it. | ||
+ | |||
+ | If you don't do this, you may end up with two copies of VPOP3 running at the same time, which will almost certainly cause strange things to happen. | ||
+ | |||
+ | There are two main options here: | ||
+ | - Disable the VPOP3 service | ||
+ | - Uninstall VPOP3 | ||
+ | |||
+ | ====Disable the VPOP3 service==== | ||
+ | Go to **Control Panel -> Administrative Tools -> Services** on the //OLD// computer | ||
+ | |||
+ | Find the **VPOP3** service. Double-click it. If the Service Status is ' | ||
+ | |||
+ | Find the **VPOP3DB** service and do the same again | ||
+ | |||
+ | ====Uninstall VPOP3==== | ||
+ | Only uninstall VPOP3 if you will not want to run VPOP3 on this computer again, as it will clear all the data. | ||
+ | |||
+ | Go to **Control Panel -> Programs and Features** on the //OLD// computer | ||
+ | |||
+ | Find the ' | ||
=====More information===== | =====More information===== | ||
The documentation for the PostgreSQL utilities can be useful: http:// | The documentation for the PostgreSQL utilities can be useful: http:// | ||
- |