Blame

3fb9e8 Hargata Softworks 2025-01-02 21:11:26 1
# Upgrade Guide
2
3
Comprehensive upgrade guide for Docker and Standalone Windows/Linux Executables.
4
5
Regardless of how your LubeLogger instance is installed/configured, we highly recommend that you create a backup before updating, it will take less than two minutes of your time and save you a lot of headache if something goes wrong.
6
7
## Create A Backup
8
9
### Manual Method
10
11
Login as the root/superuser to your LubeLogger instance, navigate to the Settings tab and create a backup
12
13
![](/Installation/Upgrade/a/image-1735849586472.png)
14
15
A zip file will be downloaded to your computer.
16
17
### Automated Method
18
19
Use a script to hit the API endpoint for creating backups, see [[API|Advanced/API#example-use-cases]]
20
21
You can automate the script using a cron job to create daily or weekly backups.
22
23
## Docker
24
25
1. Create a backup
26
2. Verify your Docker Volumes
27
3. Run the command `docker compose pull`
28
4. The, run the command `docker compose up` to start the container
29
30
If your Docker Volumes are bound and persisted correctly, you should have no loss of data.
31
32
## Windows/Linux Standalone
33
34
### The Easy Way
35
36
1. Create a backup
37
2. Important: Make a copy of `appsettings.json`
38
3. Download the latest version of LubeLogger from the Release section
39
4. Extract the archive over your existing LubeLogger installation.
50a6f4 Hargata Softworks 2025-01-03 06:00:36 40
5. Replace `appsettings.json` with the copy.
3fb9e8 Hargata Softworks 2025-01-02 21:11:26 41
42
This method can be inconsistent due to the various approach users can use to extract the archive, certain archive tools will delete all folders in the destination path that don't exist within the archive. If your LubeLogger instance is missing data, restore the backup.
43
44
### The Consistent Way
45
46
1. Create a backup
47
2. Make a copy of the following files and folders:
48
49
- `appsettings.json`
50
- `config\UserConfig.json`
51
- `data\cartracker.db`
52
- `wwwroot\images`
53
- `wwwroot\documents`
54
- `wwwroot\translations`
55
56
3. Download the latest version of LubeLogger from the Release section
57
4. Extract the archive over your existing LubeLogger installation.
58
5. Replace the files and folders with the files and folders you made copies of.