1.) Backup the old alert data in /var/ossec/logs
2.) Upgrade the existing HUB to the most recent versions of awp and ossec
3.) Install the new HUB
4.) Stop awpd awpwebd and ossec on the new hub.
5.) Copy over /var/ossec/etc/client.keys to new hub using the information here. (Ensure that the permissions for these dirs and their files matches the permissions on the old hub)
6.) Copy over /var/awp/etc to new hub (Ensure that the permissions for these dirs and their files matches the permissions on the old hub)
7.) Start awpd, run awp -s -f
8.) Start ossec-hids if it's not already running
9.) Switch agents over to the new hub
10.) Check ossec.log for any errors
11.) Check that all agents can connect. If not, switch them back to the old hub
12.) Maintain the old hub until you are certain the migration was successful
If your agents are successfully connected to the new hub, you can then migrate your data using the process outlined HERE