This article describes how to export your UniFi Controller from one Cloud Key to another.
NOTES & REQUIREMENTS: Please upgrade both Cloud Key firmwares to the latest version available, as well as the UniFi Controller Software. It is recommended to create a backup of your current Controller before beginning.
Table of Contents
- How to Migrate with Backup and Restore
- How to Migrate Using the UniFi Site Export Wizard
- Related Articles
The Controller migration procedure is the same regardless of the Cloud Key generation or method of hosting the Controller, as long as the new Controller version (the one you will be migrating to) is the same or newer than the original Controller's. The first method described in this article is to download a backup configuration from the original Cloud Key and upload it onto the new Cloud Key during its initial setup. This method might be preferable for Controllers with many sites, as it will migrate all sites and devices at once.
The second option is via the UniFi Site Export Wizard, which provides a guided site-per-site migration from one Cloud Key to another. It is a simpler process, and will allow users to select which sites and which devices they wish to migrate.
How to Migrate with Backup and Restore
Follow these steps to download a backup of the original Cloud Key's Controller and migrate it to a new Cloud Key. The Backup and Restore method will migrate settings and historical data (if selected), as well as all sites and devices.
NOTE: You will only be able to restore the backup on a Cloud Key with a Controller version that is the same or newer than the one original Cloud Key's. You will be able to upgrade your new Cloud Key even before you adopt it from the Cloud Access Portal page. If you happen to be running a beta version on the original Cloud Key Controller, then upgrade the new Cloud Key's Controller via SSH. On a new Cloud Key, where you haven't set your own password, use root as username and ubnt as password for SSH access.
1. In the original Cloud Key's UniFi Controller go to Settings > Maintenance > Backup > Click Download Backup button to generate and save a new UniFi backup file (
.unf). Modify the Data Retention to include historical data, or only save your Settings before downloading.
2. To avoid having duplicate Controllers shut down the old Cloud Key once the backup download is complete. Scroll down in the Settings > Maintenance > Cloud Key Operations and click the Shut Down Cloud Key button.
3. Upload the backup onto the new Cloud Key by following initial setup instructions. Launch the Setup Wizard by discovering the new Cloud Key and then clicking Adopt in the Cloud Access Portal. If you have already configured the Cloud Key with the wizard or via the UniFi app/bluetooth, open the controller and go to Settings > Maintenance > Restore and click Choose File. Select your recently downloaded .unf file.
4. Once the Setup Wizard launches, the first page will offer the option to restore from a previous backup. Click that link and select your recently downloaded
.unf file. Note that this will also restore the Controller credentials from your original Cloud Key.
5. Wait until the backup is restored. Once UniFi finishes working, you will be presented with the login screen for the new Controller. Remember to use the username and password from the old Controller.
6. Once you have confirmed that all devices and settings have migrated successfully to the new Cloud Key, it is strongly recommended to reset the old Cloud Key to factory defaults to avoid duplicate Controllers which could cause issues. While still connected to the power source:
- Press and hold the reset button for 10 seconds.
- Release the button (the LED on the device will stop glowing).
- Do not disconnect the UCK from its power source during the reboot process.
- The Cloud Key will restore factory settings.
7. Close the browser page with the Cloud Access Portal from where you launched the Controller Wizard. To open the Cloud Access Portal again, go to Settings > Cloud Access and click the Dashboard link from there.
How to Migrate Using the Site Export Wizard
The Site Export Wizard will export sites from one adopted Controller to another, so if you are migrating to a new (or factory-reset Cloud Key), begin by following the usual initial setup instructions found in the UniFi User Guide (Chapter 1: Software Installation). Note that you can only import your current site to other Controllers that have the same software version or higher, so make sure to upgrade if needed before proceeding.
1. Begin by having both the original Cloud Key's Controller and the new Cloud Key's Controller open in your browser (Chrome is recommended). Go to the original UniFi Controller and select the site you wish to export, using the upper right hand corner Current Site dropdown. If you have never changed the Site name or added another, you will select Default. In the left hand menu, go to Settings > Site.
2. Click the Export Site button, found in the bottom, right-hand corner of the Site page. This will initiate the Site Export Wizard.
3. A migration dialog box will appear, click Download Backup File to download the file that contains your Site configuration. Do not click Confirm yet, we will come back to this screen soon.
4. Once the backup is downloaded, open the new Cloud Key's Controller and click Current Site in the right hand corner of the top toolbar. Select Import site from the dropdown.
5. Name the site in the new Cloud Key's controller. It does not need to match the original name. Once you have named the site, click Choose file and select the .unf backup file that you just downloaded in step 3.
6. Once the import has finished, you will get confirmation that the site was imported. Now you can go back to the old Cloud Key's migration dialog box and click Confirm.
At this point, you may start migrating devices. To do so:
7. First, locate the IP of the new Controller. You can see the IP on the Gen 2 Cloud Key's LCD screen. Or if you are using another Cloud Key model, go to the Cloud Access Portal and find it in the HOST column.
8. Copy the IP address of the new Cloud Key's Controller and paste it in the migration dialog box's "Controller Inform URL" field. Keep the inform port set to 8080 as shown:
9. Next, select the devices you want to migrate by checking the corresponding boxes. By default, they will all be selected. Click Migrate Devices.
10. Verify that all devices have a Connected status in the new Controller's Devices page. Note this may take a few minutes. Once you have verified the devices are connected to the new Controller, you can click Forget Devices in the old Controller's migration dialog box, concluding in this way the migration process.