Yesterday I have tried to move the linux UniFi controller from a temporary machine to a new, more permanent location. I have noticed the steps are simple:

  1. Install the controller onto the new server, but don't do anything now.
  2. Back up the current configuration (settings - maintenance - download backup)
  3. Shut down the controller from the original server
  4. Import the configuration into the new controller (settings - maintenance - restore backup)
  5. In settings - controller set the Controller Hostname/IP to the new controller's IP
  6. Profit!

Hth,