Skip to content

Backup Restore Between Upgrades

Shiny380 edited this page Aug 3, 2022 · 1 revision

Notes

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.

Steps

Use the -h option for both scripts for help!

  1. Create a device backup

    python3 chirpstack-app-device-backup.py -p <PASSWORD> -i localhost:8080 > /tmp/chirpstack-device-backup.json
    
  2. Continue with upgrade...

  3. 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
    
Clone this wiki locally