Update migrate.md to handle exporting json via docker volume (#5428)

This commit is contained in:
Peter Kopias 2023-08-11 05:04:09 +02:00 committed by GitHub
parent e09c51a882
commit 6707f18f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"