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
how_to:v5_-_move_to_a_new_pc [2013/10/17 15:05] – [Restore the Database Backup] paulhow_to:v5_-_move_to_a_new_pc [2024/09/02 08:35] (current) – [Copy the VPOP3 directory tree] paul
Line 5: Line 5:
   - Stop VPOP3 on the original PC   - Stop VPOP3 on the original PC
   - Manually make a backup of the database on the original PC   - Manually make a backup of the database on the original PC
-  - Copy the VPOP3 directory tree from the original PC to the new PC **except for the VPOP3\pgsql directory**+  - Copy the VPOP3 directory tree from the original PC to the new PC **except for the VPOP3\pgsql directory** and any old copies of the pgsql directory (eg 'pgsql83' or 'pgsql_v711upg')
   - Install VPOP3 on the new PC, **but do not start VPOP3 yet**   - Install VPOP3 on the new PC, **but do not start VPOP3 yet**
   - Restore the database backup (from step 2) on the new PC   - Restore the database backup (from step 2) on the new PC
Line 14: Line 14:
 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.
  
-If you want, we can do this move for you via remote access. The charge for us to do that is currently [[http://www.pscs.co.uk/buynow/buy.php?item=ASSTMOVE|£30 (+ VAT)]]. If you want us to do this, make sure that it is possible to copy files between the PCs on your network (or have copied all the necessary files beforehand). Copying the files over the Internet to our office and then back again is not feasible given the large amounts of data that can be present.+If you want, we can do this move for you via remote access. The charge for us to do that is currently [[https://www.pscs.co.uk/buy/ASSTMOVE|£50 (+ VAT)]]. If you want us to do this, make sure that it is possible to copy files between the PCs on your network (or have copied all the necessary files beforehand). Copying the files over the Internet to our office and then back again is not feasible given the large amounts of data that can be present.
  
 You can follow most of these steps if VPOP3 was on a PC that died, and you are moving it to a replacement PC. However, this is less ideal than [[restore_a_backup_of_vpop3|restoring from the latest daily backup]] you made. If you were not previously backing up VPOP3, this may be a [[http://www.pscs.co.uk/products/bfw/index.php|good time to start]]... You can follow most of these steps if VPOP3 was on a PC that died, and you are moving it to a replacement PC. However, this is less ideal than [[restore_a_backup_of_vpop3|restoring from the latest daily backup]] you made. If you were not previously backing up VPOP3, this may be a [[http://www.pscs.co.uk/products/bfw/index.php|good time to start]]...
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.//
  
 At the password prompt, type **vpop3pass** At the password prompt, type **vpop3pass**
-(This assumes a standard installation, if your PostgreSQL installation is non-standard, then you may need to change this command appropriately)+(This assumes a standard installation, if your PostgreSQL installation is non-standard, then you may need to change this command appropriately). Note that for security reasons, the password will not be displayed as you type it in.
  
 This will create a file 'database.dmp' containing a backup of the database in the VPOP3 directory so it will be copied by the next step This will create a file 'database.dmp' containing a backup of the database in the VPOP3 directory so it will be copied by the next step
Line 34: Line 34:
 How you do this depends on your network setup.  How you do this depends on your network setup. 
  
-The easiest way to copy it all except for the VPOP3\pgsql directory is often to copy everything, then delete the VPOP3\pgsql from the **new PC** after the copy has finished+The easiest way to copy it all except for the VPOP3\pgsql directory is often to copy everything, then delete the VPOP3\pgsql from the **new PC** after the copy has finished
 + 
 +Also, do not copy any other 'pgsql' directories which may be left over from previous upgrades - eg 'pgsql83' or 'pgsql_v711upg'
  
 Note that if you are moving to Windows Vista/2008/7 or later, we **strongly** recommend that you do not copy the files to the 'Program Files' (or 'Program Files (x86)') folder on the new PC as that can cause problems for VPOP3, because Windows has restrictions on what can be put into these folders. (Maybe copy it to a **C:\VPOP3** folder instead) Note that if you are moving to Windows Vista/2008/7 or later, we **strongly** recommend that you do not copy the files to the 'Program Files' (or 'Program Files (x86)') folder on the new PC as that can cause problems for VPOP3, because Windows has restrictions on what can be put into these folders. (Maybe copy it to a **C:\VPOP3** folder instead)
how_to/v5_-_move_to_a_new_pc.1382022332.txt.gz · Last modified: 2018/11/14 10:44 (external edit)