Some Bits: Nelson's log

Ubiquiti router swap: backup restore

I’m upgrading my home router hardware. I’m not sure Unifi has a clear path for doing this at home scale, it’s a bit tricky.

The path I’ve chosen is to configure the new router by restoring a backup from the old one, then swapping the hardware. Simple enough as long as you’re careful to not put both devices on the ethernet at the same time. Otherwise they’ll both try to use the same IP and both be serving DHCP). The one real wrinkle is Wi-Fi, when you restore to the new device it will have Wi-Fi turned on with your SSID and unless you have a Faraday cage you can’t easily isolate it. I just chose to live with it for the minute or two until I could get in and pause the WiFi.

However: UnifiOS has a serious flaw. You can’t restore from a backup for a site other than the Default site. See the notes here. I don’t know why but my old router was set up with some other site, Default was unconfigured with a stock 192.168.1.1 setup.

Claude to the rescue: it offered to edit the backup file after it was generated and swizzle in the Default site name. This worked fine. There’s one more wrinkle, the .unf backup file is encrypted but the password is well known. Claude just decrypted it, edited it, and re-encrypted it for me. What a bro. (No thanks to you, BC Yang.)

Anyway that all done and now my new router acts like the old one. It’s got the same LAN config, the same static routes, the same hostnames for MAC addresses, etc. Phew.

Another example of the kind of thing I could have figured out on my own but would have been several frustrating days of tinkering. Claude had it done in half an hour.