A self-hosted UniFi Controller holds the configuration for every device you have adopted. If the host dies without a backup, the devices keep running, but rebuilding the configuration and re-adopting everything is a long evening.

Backups take minutes to set up. This guide covers what to back up, where to keep it, and how restores and migrations work.

What a backup contains

A controller backup stores configuration: sites, networks, Wi-Fi, device settings, administrators and similar data. Depending on the options you choose, it may also include a limited window of history. Network 11 moves statistics to a new engine and clears old history, so do not rely on backups to carry graphs across that upgrade. See what is new in Network 11.

Automatic backups

Enable scheduled backups in the controller's settings and choose how many to keep. The exact menu location differs between versions and between UniFi OS Server and the legacy server. On UniFi OS Server, recent releases improved backup reliability for large datasets and allow Super Admins to restore local backups.

When you set up scheduled backups, check three things:

  • Frequency: how often a new backup is written. Match it to how often your configuration changes.
  • Retention: how many backups are kept before the oldest is deleted. Keep enough to go back further than the point where a mistake might be noticed.
  • History: whether the backup includes a window of statistics. Configuration-only backups are smaller and faster to copy.

After enabling the schedule, wait for the first automatic backup to appear and download it once by hand. That confirms the schedule runs and shows you where the files are listed.

Keep a copy somewhere else

A backup that lives only on the controller disappears with the controller. Download a copy to another computer, a NAS or cloud storage on a schedule. A UI Account can also enable cloud backups for linked consoles, but check what your setup actually stores before relying on it.

A simple rule from general IT practice is to keep at least three copies on two different kinds of storage, with one copy away from the site. For a UniFi Controller that could look like this:

  1. The automatic backups on the controller host, for quick restores after a mistake.
  2. A scheduled copy on a NAS or another computer on the network, for when the host itself fails.
  3. A copy in cloud storage or at another location, for fire, theft or a failure that takes out the whole site.

Automate the copy where you can. A script or sync tool that runs on a schedule is far more reliable than remembering to download a file by hand.

Restoring to new hardware

  1. Install the same package (UniFi OS Server or legacy) on the new host, ideally the same or a newer version.
  2. During setup, choose to restore from a backup and upload the file.
  3. Give the new host the old IP address, or update the inform address on devices. See how adoption works.
  4. Confirm devices reconnect and show as online.

Migrating legacy Network Server to UniFi OS Server

Ubiquiti's documented path is to back up the Network Server, close it, and install UniFi OS Server. On macOS and Windows, the installer offers to migrate a Network Server from the default location. On Linux, or if automatic migration does not happen, use the Site Export tool from Ubiquiti's backups and migration guide. UniFi OS Server added automatic migration from the legacy Network Server on Linux in its 5.1 releases, so check the current release notes. Full install steps are in how to install UniFi OS Server.

Before a migration, check that:

  • You have noted the legacy server's version, taken a fresh backup and copied it off the host. Check the current release notes for any minimum version the migration expects.
  • The host meets UniFi OS Server's requirements. On Windows that includes WSL 2, which the installer sets up.
  • Nothing else on the host uses the ports UniFi OS Server needs.
  • Your gateway is supported. A USG cannot move past Network 10.6, and Cloud Gateways cannot be managed by an external UniFi OS Server.

After the migration, confirm that devices are online and that scheduled backups are enabled on the new server, since settings and storage paths may differ from the legacy controller.

Choosing a schedule and retention

The right schedule depends on how often your configuration changes and how painful it would be to lose a week of changes. These are reasonable starting points, not Ubiquiti requirements:

NetworkAutomatic backupsCopies to keepOff-host copy
Home lab, rarely changedWeeklySeveral weeks' worthMonthly, plus after big changes
Small officeDaily or weeklyAt least a month's worthWeekly
Multi-site or client networksDailyAt least a month's worthDaily, automated

Whatever you choose, add a manual backup before every upgrade, migration or large change. Automatic backups protect against hardware failure. Manual backups protect against your own mistakes, because they capture the exact state you want to return to.

A backup routine before every upgrade

Most restores happen after an upgrade goes wrong. A short routine makes those restores easy:

  1. Read the release notes for the new version on ui.com, especially for major releases such as Network 11.
  2. Note the current version of the Network application and, on UniFi OS Server, the server version.
  3. Take a manual backup from the controller's settings.
  4. Download the backup file and copy it to a second location, such as a NAS or another computer.
  5. Confirm the file is not empty and that you can find it again later. Give it a clear name that includes the date and version.
  6. Run the upgrade, then check that every device reconnects and shows as online.

If the upgrade fails badly, you can reinstall the previous version on a clean host and restore the backup you just took. A backup only restores to the same or a newer version of the application, which is why recording the version matters.

Test your restores

A backup you have never restored is a hope, not a plan. Testing a restore once or twice a year shows that your files are complete and that you know the steps when it matters.

  1. Prepare a spare machine or a virtual machine that meets the UniFi Controller system requirements.
  2. Keep it off the production network, or on an isolated network, so your live devices are not confused by a second controller.
  3. Install the same package and version as your production controller.
  4. Restore your latest off-host backup and sign in.
  5. Check that sites, networks, Wi-Fi settings and administrators look right.
  6. Shut down and delete the test controller when you are finished.

Do not leave a restored test controller running next to the real one, and do not clone a production controller VM to create it. Ubiquiti warns that clones share remote access tokens.

Document your recovery details

A backup file alone does not get the network back. Write down the details you will need when the controller host is gone, and store them somewhere other than the controller itself:

  • The controller's IP address and hostname, and whether it uses a static IP or a DHCP reservation.
  • The package and version in use: UniFi OS Server or the legacy Network Server.
  • Where the backups are stored and how to reach them.
  • Local administrator credentials, kept in a password manager, and which UI Account the controller is linked to.
  • Any firewall rules on the host, such as TCP 8080, UDP 3478 and UDP 10001 for device communication and discovery.

Keeping the same IP address on the replacement host is the single most useful step. Devices already know that address, so they reconnect without any changes.

Troubleshooting a restore

The restore is refused

The backup probably came from a newer version than the one installed. Install the same or a newer version of the application, then try again.

Devices show as offline or disconnected

The new controller is probably at a different address. Either move the host to the old IP address or point devices at the new one. If devices still will not connect, work through our guide to fixing UniFi adoption failures.

The controller will not start after a restore

Check free disk space and memory first, then the logs. On Windows, confirm that WSL 2 is working for UniFi OS Server. Our guide to a UniFi Controller that is not starting covers the common causes.

Graphs and history are missing

This is expected after Network 11, which clears statistics history. Configuration is what a backup is designed to protect.

Keep backup files secure

A backup contains your network configuration, including administrator accounts and Wi-Fi settings. Treat it like a password file. Store copies on systems with restricted access, avoid public file-sharing links, and delete old copies you no longer need. See how to secure a self-hosted UniFi Controller for wider hardening steps.

Frequently asked questions

How often should I back up my UniFi Controller?

Automatic backups at least weekly suit most networks, plus a manual backup before every upgrade or change.

Can I restore a backup to a different operating system?

Configuration backups are generally portable between hosts. Restore to the same or a newer version of the application.

Will I keep my statistics after migrating?

Configuration migrates. Network 11 clears statistics history regardless of migration.

Do I need to re-adopt devices after a restore?

Not if the new controller is reachable at the same inform address. Otherwise, point devices at the new address.

Sources

Facts in this guide were checked against these sources on November 16, 2026. Ubiquiti updates its software and documentation often.

Written by the Unifi Controller editorial team

We write expert, source-checked guides to the UniFi Controller. We are not affiliated with Ubiquiti and do not claim hands-on test results unless stated. Spotted an error? Tell us and we will correct it.