Disclaimer: This tool is a dev tool meant for engineers and comes with no warranty or support. This is not an official Rancher tool for end-users. Only use this tool under direct direction from SUSE/Rancher support.
This tool essentially just extracts the "clusters.management.cattle.io#v3/local.json"
file from the tar.
Then you can edit it as needed and then repackage the file into a backup.
- Extract local cluster:
bro-migration-tool pull-local -f {tar.gz backup}
- Edit the
local.yaml
file as needed. - Repack the
local.yaml
file:bro-migration-tool push-local -f {tar.gz backup} -o k3s-test1
- Restore the test backup you just modified.
The above example will output a new archive at k3s-test1.tar.gz
.
To assist with a very specific workflow being used while investigating potential improvements to BRO.
There are new subcommands intended to be used as a stop gap solution for Rancher migrations between k3s<->rke2. One sub-command has been created for each migration direction you could use. Only use this method when directed by a Support Admin.
Essentially the process to use this method will require you having local access to the backup. We'll run our tool, then upload that backup somewhere the cluster can restore from it.
Ultimately, this process is essentially the same as Migrating Rancher to a New Cluster directions. Just with this small middle step to prepare a backup for restore on the new cluster.
- Create a backup of your Rancher app running on k3s (ideally save on S3),
- Download the backup from S3 to local system,
- Run
bro-migration-tool k3s-rke2 -f {input.tar.gz} -o {output-file}
(note-o
flag is just name string, w/o extension), - Reupload the new file created in step 3 to S3,
- Setup a k8s cluster using equivalent RKE2 version as original k3s cluster,
- Install Rancher Backup helm chart,
- Apply a
Restore
manifest using the file we just uploaded, - Give the restore time to complete, then continue following the "Migrating Rancher to a New Cluster" directions.
- Observe the rancher cluster and give it plent of time to resolve things. (Work with your Support Engineer if concerned)
- Create a backup of your Rancher app running on k3s (ideally save on S3),
- Download the backup from S3 to local system,
- Run
bro-migration-tool rke2-k3s -f {input.tar.gz} -o {output-file}
(note-o
flag is just name string, w/o extension), - Reupload the new file created in step 3 to S3,
- Setup a k8s cluster using equivalent k3s version as original rke2 cluster,
- Install Rancher Backup helm chart,
- Apply a
Restore
manifest using the file we just uploaded, - Give the restore time to complete, then continue following the "Migrating Rancher to a New Cluster" directions.
- Observe the rancher cluster and give it plent of time to resolve things. (Work with your Support Engineer if concerned)