Tools
Migrate WHD with embedded PostgreSQL from Windows to SolarWinds WHD VA or to any Linux machine
How to Migrate WHD Embedded PostgreSQL Database to Linux OS.
First published date
Last published date
Overview
Product section
Resolution
- Connect to the VA/Linux machine via SSH as user admin.
Note: The default password admin. If you have changed the password, use that instead.
- Once connected, change to the user root: sudo su -
- Stop the WHDservice: webhelpdesk stop
- Configure PostgreSQL to allow connection from all interfaces. Edit the postgresql.conf file.
- vi /usr/local/webhelpdesk/bin/pgsql/var/lib/pgsql/9.2/data/postgresql.conf
- Press A on your keyboard.
- Look for the line #listen_addresses = 'localhost' and change it to listen_addresses = '*'
Note: The # has been removed to uncomment the line.
- Save the file by pressing SHIFT + Z + Z.
- Start PostgreSQL manually using the following command:
/usr/local/webhelpdesk/bin/pgsql/etc/rc.d/init.d/postgresql-9.2 start
- Switch to PostgreSQL user:su - postgres
- In the WHD in Windows, go to Setup > General > Database.
- Click Backup Now.
- Stop WHD once the backup is done on the Windows machine.
- Browse to C:\Program Files\WebHelpDesk\pgsql9\bin and run pgAdmin3.
- In the pgAdmin III window, go to File > Add Server.
- Add the following:
- Name: WHDDB
- Host: [the VA/Linux machine's IP Address]
- Port: 20293
- Maintenance DB: postgres
- Username: whd
- Password: whd
- Expand Databases.
- Right-click whd, select Delete/Drop from the menu and click Yes.
- Create a new DB. Right-click Databases and select New Database.
- Set the following:
- Name: whd
- Owner: whd
- Right-click whd then select Restore.
- Search for the backup file of the PostgreSQL DB.
- Click Restore.
- Once the restore is done and successful, return to the SSH Window connected to the VA/Linux machine and press CTRL + C to stop PostgreSQL from running.
- Type exit to switch back to user root.
- Start Web Help Desk on the VA/Linux machineservice: webhelpdesk start