DEV Community

Carrie
Carrie

Posted on

How to Migrate Data from One SafeLine to the other

If you wanna migrate data, prepare environment for migration, ensuring that the version remains consistent with the original environment.

1. Stop the containers in both environments

Using docker compose down to stop the containers.

Original environment

Image description

New environment

Image description

2. Copy the SafeLine directory from the original environment and overwrite the SafeLine directory in the new environment.

You can zip the directory directly and then copy. If you don't have zip, install one. For example, on ubuntu, install with apt.
apt install zip

Image description

Zip under data directory.
zip -r safeline.zip safeline
Done.

Image description

Then put the zip package from the previous environment to the new environment via scp.
scp safeline.zip root@ip in the new environment:/data

Image description

Extract the files under data directory and delete the existing SafeLine directory.
unzip safeline.zip

Image description

3. Restart the containers in the original environment.

Image description

4. How to move the license from old SafeLine to the new

If you're using SafeLine Pro and need to move the license too, you need to restart the original SafeLine, click Pro on the upper right corner of the original SafeLine Dashborad ->BACK TO COMMUNITY EDITION.

Image description

5. Restart the SafeLine container in the new environment and re-activate your license to the new SafeLine

Image description

Top comments (0)