Updated the backup docker-compose commands

This commit is contained in:
TheRealOrco
2024-11-13 20:20:00 +02:00
committed by GitHub
parent 8436f521b8
commit 29a528f0bc

View File

@@ -212,10 +212,11 @@ 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 doesnt 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 compose cp -a management:/var/lib/netbird/ backup/
docker compose start management
docker-compose stop management
docker cp -a management:/var/lib/netbird/ backup/
docker-compose start management
```
## Upgrade