diff --git a/docs/docs/start/migrate.md b/docs/docs/start/migrate.md index c6b5b583ab..7a9a3cb7af 100644 --- a/docs/docs/start/migrate.md +++ b/docs/docs/start/migrate.md @@ -20,6 +20,12 @@ Export the database contents to a JSON file using the following command: invoke export-records -f data.json ``` +When using docker the command above would produce output inside the ephemeral container. To make sure your JSON file persists in the docker volume used for backups use the following command: + +``` +docker compose run inventree-server invoke export-records -f data/backup/data.json +``` + This will create JSON file at the specified location which contains all database records. !!! info "Specifying filename"