DEV Community

Carrie
Carrie

Posted on • Edited on

How to Migrate Data from One SafeLine to Another

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

New environment

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

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

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

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

3. Restart the containers in the original environment.

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

If you're using SafeLine Pro or Lite and need to move the license too, you need to unbind the license in our license store: https://safeline.app.safepoint.cloud/.

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

Top comments (0)