2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-28 05:36:46 +00:00

Added backup and restore instructions

This commit is contained in:
eeintech 2021-02-11 09:24:19 -05:00
parent 405a259d01
commit 2ad94cd4e9

View File

@ -52,3 +52,19 @@ inv import-records -f data.json
!!! warning "Character Encoding"
If the character encoding of the data file does not exactly match the target database, the import operation may not succeed. In this case, some manual editing of the database JSON file may be required.
### Backup and Restore
To backup your database data and media files, first define a [Backup Location](../config/#backup-location) in your configuration file.
Then run the following command to backup the data:
```
inv backup
```
It should create two separate backup files in the [Backup Location](../config/#backup-location) folder: one for the database data and one for the media files (part pictures, etc.)
To restore your data from a backup, use the following command:
```
inv restore
```