From f74b56cf2429ffd9d59d30f8fa9fe923522a26c6 Mon Sep 17 00:00:00 2001 From: Stefano Date: Fri, 22 Nov 2024 18:40:13 +0100 Subject: [PATCH] [docs] Fixed documentation indentation mistake (#251) * [docs] Fixed documentation indentation mistake Someone made a mistake when editing the docs, thinking they added a comment. Fixed this as it looks weird on the actual ui. * [docs] Added compose to the cp command Docker cannot detect the container if it's not using the compose file. Hence re-adding the compose for the copy command. --------- Co-authored-by: Maycon Santos --- src/pages/selfhosted/selfhosted-guide.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/selfhosted/selfhosted-guide.mdx b/src/pages/selfhosted/selfhosted-guide.mdx index a2e7570d..23c884b7 100644 --- a/src/pages/selfhosted/selfhosted-guide.mdx +++ b/src/pages/selfhosted/selfhosted-guide.mdx @@ -211,12 +211,12 @@ cd netbird/infrastructure_files/artifacts/ mkdir backup cp docker-compose.yml turnserver.conf management.json backup/ ``` + To save the Management service databases, you need to stop the Management service and copy the files from the store directory using a docker compose command as follows: -# These command doesn't work, docker compose should be "docker-compose" and for the container volume copy it should be "docker cp -a management:/var/lib/netbird/ backup/" ```bash -docker-compose stop management -docker cp -a management:/var/lib/netbird/ backup/ -docker-compose start management +docker compose stop management +docker compose cp -a management:/var/lib/netbird/ backup/ +docker compose start management ``` ## Upgrade