Add backup and restore of data
This commit is contained in:
@@ -8,7 +8,7 @@ A Dockerized inventory system for computers, audio equipment, graphics hardware,
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
Open http://localhost:5000. The SQLite database is stored in the persistent `inventory_data` Docker volume.
|
||||
Open http://localhost:5000. The SQLite database is stored in the project-local `data` folder.
|
||||
|
||||
## Features
|
||||
|
||||
@@ -22,7 +22,9 @@ Open http://localhost:5000. The SQLite database is stored in the persistent `inv
|
||||
- CSV export of the currently visible inventory
|
||||
- Responsive web UI for desktop and mobile
|
||||
|
||||
Uploaded pictures are stored in `/data/uploads` alongside the SQLite database, so they persist in the `inventory_data` Docker volume. Existing databases are migrated automatically when the application starts.
|
||||
The project-local `data` folder is mounted at `/data`. The SQLite database is stored at `data/inventory.db`, and uploaded pictures are stored in `data/uploads`. Keep this folder with the project when moving it to another computer. Existing databases are migrated automatically when the application starts.
|
||||
|
||||
Use **Backup data** in the sidebar to download a ZIP containing the database and uploaded pictures. On another computer, start the application and use **Restore data** to upload that ZIP. Restoring replaces the current inventory and pictures.
|
||||
|
||||
## Local development
|
||||
|
||||
|
||||
Reference in New Issue
Block a user