Tools
Restore Web Help Desk database hosted on embedded PostgreSQL to a new server after a WHD upgrade
Restore the Web Help Desk database hosted on embedded PostgreSQL to a new server after upgrading Web Help Desk to version 12.7.7 or earlier.
First published date
Last published date
Overview
This article describes how to restore the Web Help Desk database hosted on embedded PostgreSQL when migrating or restoring the Web Help Desk database from an old server to a new server. The provided steps are applicable for Web Help Desk versions 12.7.7 and earlier.
Product section
Resolution
- Copy the backup file from the old server to the new server.
- Stop Web Help Desk (Stop and start Web Help Desk) on the new server.
- On your Web Help Desk server, open the Apps page and click Services.
- in the Services window, ensure that one of the following services is running and displays in the list. To start the service, right-click the service and select Start.
- Web Help Desk PostgreSQL Embedded Database
- PostgreSQL Embedded Database
- Navigate to your
WebHelpDeskdirectory.- Apple® OS X®:
/Application/WebHelpDesk - Microsoft Windows®:
\Program Files\WebHelpDesk - Linux:
/usr/local/webhelpdesk
- Apple® OS X®:
- Navigate to
pgsql9\binand double-click pgAdmin3. - In the pgAdmin3 window, click File > Add Server.
- Add the following information in the window:
- Name:
WHDDB - Host:
localhost - Port:
20293 - Maintenance DB:
postgres - Username:
whd - Password:
whd
- Name:
- Click OK on the Guru Hint window.
- Expand Databases.
- Right-click whd and select Delete/Drop from the menu.
- In the Guru Hint window, clickYes, and then click OK.
- Right-click Databases and select New Database.
- Set the following:
- Name:
whd - Owner:
whd
- Name:
- Right-click whd and select Restore.
- Navigate to the backup file that you copied from the old server, and then click Restore.
- Start Web Help Desk (Stop and start Web Help Desk) on the new server.
pg_restore -Fc -h 127.0.0.1 -p 20293 -U whd -d whd <path_to_whd_backup_file>
*-h : stands for the target host
*-p : stands for the port number
*-U : stands for the username being used
*-d : stands for the target database name