From 1b6efa5bb3836369becba9a9fb9f4c32678332f8 Mon Sep 17 00:00:00 2001 From: Brian Greunke Date: Fri, 19 Sep 2025 12:56:19 -0500 Subject: [PATCH] docs: added instructions for older platform method migration --- docs/usage/platform/faq.mdx | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/usage/platform/faq.mdx b/docs/usage/platform/faq.mdx index 33fb9f67..e9f9d892 100644 --- a/docs/usage/platform/faq.mdx +++ b/docs/usage/platform/faq.mdx @@ -24,4 +24,29 @@ The CLI fetches credentials from the API and runs `docker login` per unique regi This has not been developed for, nor tested on Windows. -You can try to use WSL2 + Docker Desktop. The CLI checks `docker` and `docker compose` availability regardless of OS. \ No newline at end of file +You can try to use WSL2 + Docker Desktop. The CLI checks `docker` and `docker compose` availability regardless of OS. + +#### How do I migrate from an older platform install method? + +If you installed using the old `install.sh` script, you can migrate your data by running the following commands to: + +```bash +#!/bin/bash + +set -e + + + +echo "Migrating data from platform to dreadnode..." + +echo "Migrating Postgres..." +docker run --rm -v platform_postgres-data:/from -v dreadnode-postgres-data:/to alpine sh -c 'cd /from && cp -a . /to' + +echo "Migrating Clickhouse..." +docker run --rm -v platform_clickhouse-data:/from -v dreadnode-clickhouse-data:/to alpine sh -c 'cd /from && cp -a . /to' + +echo "Migrating Minio..." +docker run --rm -v platform_minio-data:/from -v dreadnode-minio-data:/to alpine sh -c 'cd /from && cp -a . /to' + +echo "Migration complete." +``` \ No newline at end of file