2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-12 02:05:29 +00:00

Update documentation for dbbackup

This commit is contained in:
Oliver Walters
2021-04-25 12:21:41 +10:00
parent c4f2220412
commit 7928eeb61f
6 changed files with 19 additions and 32 deletions

View File

@ -272,4 +272,18 @@ As part of the server initialization process, data migrations and static file up
```
docker-compose up -d
```
```
## Data Backup
Database and media files are stored external to the container, in the volume location specified in the `docker-compose.yml` file. It is strongly recommended that a backup of the files in this volume is performed on a regular basis.
### Exporting Database as JSON
To export the database to an agnostic JSON file, perform the following command:
```
docker-compose run inventree-server invoke export-records /home/inventree/data/data.json
```
This will export database records to the file `data.json` in your mounted volume directory.