From 6707f18f73db4392c3427da7d0478122d76e6696 Mon Sep 17 00:00:00 2001 From: Peter Kopias Date: Fri, 11 Aug 2023 05:04:09 +0200 Subject: [PATCH] Update migrate.md to handle exporting json via docker volume (#5428) --- docs/docs/start/migrate.md | 6 ++++++ 1 file changed, 6 insertions(+) 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"