DEV Community

Carrie
Carrie

Posted on • Edited on

1 1 1 1 1

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

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

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay