Last active
February 11, 2025 23:18
-
-
Save kiwimato/07462b0fc38fe987d2413adc6dc219af to your computer and use it in GitHub Desktop.
Unifi Ubiquity restore old camera settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sshpass -p ubnt ssh [email protected] -o StrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null "wget http://192.168.123.145/persistent.tar.gz -O /tmp/pe.tar.gz;tar xzvf /tmp/pe.tar.gz -C /;echo -e 'bambamYourNewPazzdHere\bambamYourNewPazzdHere\n' |passwd " | |
# break down for easier reading - I didn't test if it works with the line breaks: | |
sshpass -p ubnt ssh [email protected] -o StrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null "\ | |
wget http://192.168.123.145/persistent.tar.gz -O /tmp/pe.tar.gz;\ | |
tar xzvf /tmp/pe.tar.gz -C /;\ | |
echo -e 'bambamYourNewPazzdHere\bambamYourNewPazzdHere\n' |passwd " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a an old Unifi Camera and the persistent memory is not working anymore, so whenever the power goes out, the camera resets to factory settings.
However, it works just fine if i configure it manually.
This has been tested with UVC Dome on v4.23.8 and Unifi NVR.
I wrote a little script that can help restore the configuration automatically. Of course, make sure to replace the dummy IPs mentioned below with your current ones.
UVC Camera IP: 192.168.123.138
Unifi NVR: 192.168.123.145
tar czvf /tmp/persistent.tar.gz /etc/persistent/ /tmp/system.cfg
/usr/share/nvr-webui/www