Skip to content

mariojfduarte/thingsboard-data-migration

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thingsboard-data-migration

This script performs data migration between two different instances of ThingsBoard, regardless of the technology used for the database.

How to use

usage: migration-script.py [-h] [-c CONFIGURATION] [-m MODE] -i INITIALTS -f FINALTS -s SOURCEDEVICEID -t
TARGETDEVICETOKEN -k TIMESERIESKEY

Help

python migration-script.py --help

Operating modes

You can perform three different operations with this script:

  1. Fetch data via HTTP RESTful API (from source ThingsBoard instance) and send via MQTT (to target ThingsBoard instance) --> use argument "-m both", default behavior
  2. Fetch data via HTTP RESTful API (from source ThingsBoard instance) and save in local file --> use argument "-m fetch"
  3. Fetch data from local file and send via MQTT (to target ThingsBoard instance) --> use argument "-m send"

About

This script performs data migration between two different instances of ThingsBoard, regardless of the technology used for the database.

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%