-
Notifications
You must be signed in to change notification settings - Fork 2
Backup Restore Between Upgrades
Shiny380 edited this page Aug 3, 2022
·
1 revision
Note: This is not a proper backup but ONLY a device dump and restore. This should only be used between upgrading versions
This can be done on the controller OR remotely from your PC. Easiest option is to have the scripts on your PC and do it remotely. Simply change the -i
option url.
Use the -h
option for both scripts for help!
-
Create a device backup
python3 chirpstack-app-device-backup.py -p <PASSWORD> -i localhost:8080 > /tmp/chirpstack-device-backup.json
-
Continue with upgrade...
-
Restore device when upgraded server is ready.
- Any ABP devices that should be moved to OTAA will need their key replaced. Use the
-k
option to set one for all. - Device profiles can be replaced with the positional arguments (at the end) like so:
old_profile_name:new_profile_name
Example:
python3 chirpstack-app-device-restore.py -p <PASSWORD> -i localhost:8080 -f /tmp/chirpstack-device-backup.json -k 00000000000000000000000000000000 ELSYS-ABP:ELSYS-OTAA
- Any ABP devices that should be moved to OTAA will need their key replaced. Use the