pueblokc / unifi-protect-recovery
PublicGUI + CLI to back up UniFi Protect device recovery codes from any NVR (Windows/Linux/macOS). By KCCS.
This tool helps you back up the recovery codes for all your UniFi Protect devices (cameras, bridges, lights, speakers, and more) by extracting them from your NVR's existing backup files. You connect to your NVR using a simple GUI or command line, the tool finds the latest backup, pulls out each device's recovery code, and saves everything to a CSV file you can store safely. This ensures you never lose access to your devices when resetting or migrating to a new controller.
How It Works
You have UniFi cameras or devices, and UniFi Protect asks for a recovery code you've never seen — leaving your devices locked out after a reset or migration.
You search online and discover this backup tool that safely extracts every device's recovery code from your NVR's existing backup files.
You double-click a launcher on your computer, and a friendly window appears asking for your NVR's address and login details.
You enter your NVR's IP address, username, and password — then click 'Test Connection' to verify everything works before proceeding.
Double-click a launcher, fill in your details, and click 'Backup Recovery Codes' to download and extract everything automatically.
Run a single command directly on your NVR to extract codes from the latest backup already stored there.
The tool finds your NVR's most recent automatic backup file — the one created during your nightly backup routine.
The tool opens the backup, reads each device's recovery code, and organizes everything into a clean spreadsheet with device names, models, and codes.
A timestamped CSV file lands in your Documents folder containing every device's recovery code — ready to use whenever you need to adopt or re-adopt a device.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.