modulepackage
1.0.0
Repository: https://github.com/nubeio/module-migration.git
Documentation: pkg.go.dev
# README
README
It will perform a bulk migration according to the host records and status listed in the CSV.
How to build
go build -o module-migration
How to migrate
Pre-requisite
- We need to have
sqlite3
in local - Download
module-migration
binary file - wget https://github.com/NubeIO/module-migration/releases/download/v0.0.2/module-migration-0.0.3-3b1c3956.armv7.zip`
- unzip module-migration-0.0.3-3b1c3956.armv7.zip`
How to
Steps
-
Generate host list.
- Hit command:
sudo ./module-migration generate-csv --external-token <external_token(need to escape $ by \$)> --ip <ip-or-ros-domain> --port <int> --schema <http|https>
- Modify
./migration.csv
- Hit command:
-
Migrate
- Hit command:
sudo ./module-migration migrate --ssh-username <ssh-username> --ssh-password <ssh-password> --ssh-port <22 by default>
- Hit command:
Workflow in migration
- Delete all plugins from selected devices (so on ROS upgrade it doesn't have to upgrade plugins -- to make it faster)
- Generate CSV from module-migration
- Filter records on that CSV file for the migration
- Make
ROS Migration State = true
- Make
Wires Migration State = true
- Make
Plugin Deletion State = false
- Run Migration
- Upgrade ROS in bulk from RCE
- Install Modules in bulk from RCE
- Enable Modules in bulk from RCE
- Upgrade RubixEdgeWires in bulk from RCE
- Migrate older data into newer one
- Make
ROS Migration State = false
- Make
Wires Migration State = false
- Make
Plugin Deletion State = true
- Run Migration
- Make