N-central Troubleshooting
Help Desk Manager - How to Backup and Restore through Command Line
Last Modified
Wed Jan 04 19:10 GMT 2023
Description
- When migrating Help Desk Manager to a new server
Environment
- N-able Help Desk Manager
Solution
- Stop HDM application on original server
- C:\Program Files\N-able Technologies\Help Desk Manager\whd_stop.bat (right click and run as administrator)
- Take a copy of the whd.conf, found at:
- C:\Program Files\N-able Technologies\Help Desk Manager\conf\whd.conf
- Backup PostgreSQL embedded database using HDM, PGAdmin tool or PostgreSQL commands on the original server.
- Install/Deploy HDM v12 on the other system
- Go through Getting Started Wizard, choose embedded DB (default PostgreSQL)
- Once finished, stop HDM application on the target server
- C:\Program Files\N-able Technologies\Help Desk Manager\whd_stop.bat (right click and run as administrator)
- Copy PostgreSQL database backup from original server to target server
- Connect to database using:
- pgsql9\bin\psql -h 127.0.0.1 -p 20293 -U whd -d template1
- Rename/Drop default empty PostgreSQL embedded database
- cd C:\ProgramFiles\N-able Technologies\Help Desk Manager
- NOTE: If prompted for password use whd
- Execute following statements:
- ALTER DATABASE whd rename to whd_old;
- CREATE DATABASE whd;
- \q
- cd C:\ProgramFiles\N-able Technologies\Help Desk Manager
- Restore PostgreSQL database backup using PGAdmin tool or PostgreSQL commands on the target server
- cd C:\ProgramFiles\N-able Technologies\Help Desk Manager
- NOTE: If prompted for password use: whd
- pgsql9\bin\pg_restore -Fc -v -h 127.0.0.1 -p 20293 -U whd -d whd path_to_whd.pgdump
- cd C:\ProgramFiles\N-able Technologies\Help Desk Manager
- Start WHD application on the target server
- C:\Program Files\N-able Technologies\Help Desk Manager\whd_start.bat (right click and run as administrator)
- Open HDM application in browser
- If the Domain host name of the target server is different to the domain host name of original server, navigate to Setup > General > Options and change Server DNS Name.
- NOTE: You also may wish to copy your configuration file from your old server
- Stop HelpDesk Manager services on the new server
- Alternatively, run the following in a command prompt window: C:\Program Files\N-able Technologies\Help Desk Manager\whd_stop.bat
- Copy C:\Program Files\N-able Technologies\Help Desk Manager\conf\whd.conf from your old server to your new server
- Start HelpDesk Manager services on the new server
- Alternatively, run the following in a command prompt window: C:\Program Files\N-able Technologies\Help Desk Manager\whd_start.bat