You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: improve clarity and readability of upgrade documentation (#799)
* docs: improve clarity and readability of upgrade documentation
- Reword upgrade process steps for better clarity and flow
- Update backup/restore procedures with more descriptive language
- Clarify that restoration requires using the previous Bytebase version
- Simplify backup procedures by removing redundant options
- Improve consistency in heading styles and terminology throughout
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* chore: update
---------
Co-authored-by: Claude <[email protected]>
Copy file name to clipboardExpand all lines: mintlify/get-started/self-host/upgrade.mdx
+42-84Lines changed: 42 additions & 84 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,122 +4,80 @@ title: Upgrade
4
4
5
5
## Upgrade Process
6
6
7
-
The following example demonstrates upgrading Bytebase using Docker. **Follow these steps in the exact order to ensure a safe upgrade:**
7
+
This guide walks through upgrading Bytebase with Docker. **Complete each step sequentially to ensure a smooth and safe upgrade:**
8
8
9
-
### Step 1: Stop and Remove the Current Container
9
+
### Step 1: Stop and Remove the Existing Container
10
10
11
-
To prevent database corruption, ensure only one Bytebase instance accesses the metadata at a time:
11
+
First, gracefully stop and remove your current Bytebase container. This prevents data corruption by ensuring no concurrent access to the metadata.
12
12
13
-
```text
14
-
docker stop bytebase
15
-
docker rm bytebase
16
-
```
17
-
18
-
### Step 2: Create a Metadata Backup
13
+
### Step 2: Back Up Your Metadata
19
14
20
-
🚨 **Critical:**Always create a backup of your metadata before upgrading. This backup is essential if you need to rollback to a previous version. See the "Back up Data" section below for detailed instructions.
15
+
🚨 **Critical:**Before proceeding, create a complete backup of your metadata. This backup serves as your safety net for rolling back if needed. Refer to the "Back up and Restore" section below for comprehensive backup procedures.
21
16
22
-
### Step 3: Deploy the New Version
17
+
### Step 3: Launch the Updated Version
23
18
24
-
Launch Bytebase with the updated version using the appropriate Docker run command for your setup.
19
+
Start Bytebase with the new version using your existing Docker run command, updating only the image tag to the desired version.
25
20
26
21
<Warning>
27
-
**Best Practice:**Always test the upgrade process in a staging environment before applying it to production.
22
+
**Production Safety:**Validate your upgrade procedure in a staging environment before executing it in production.
28
23
</Warning>
29
24
30
-
## Back up Data
31
-
32
-
### External PostgreSQL Metadata (Recommended)
33
-
34
-
If [`--pg`](/reference/command-line#--pg-string) is specified, the metadata will be stored in the specified external PostgreSQL database. Below shows how to back up and restore the Bytebase metadata, let's assume the metadata is stored in `metadb`.
If [External PostgreSQL](/get-started/self-host/external-postgres/) is not configured, then
116
-
Bytebase will store the metadata under the [`--data`](/reference/command-line#--data-directory) directory.
117
-
You can back up the `--data` directory or the `pgdata` subfolder.
118
-
119
-
<Note>
120
-
121
-
You should periodically back up the entire [`--data`](/reference/command-line#--data-directory) directory if any data is stored there.
122
-
123
-
If Bytebase is running and not in the [`--readonly`](/reference/command-line#--readonly) mode, and you want to take the backup, then the underlying data volume must support snapshot feature where the entire directory can take a snapshot at the same time, otherwise it may produce a corrupted backup bundle.
124
-
125
-
</Note>
83
+
3. Start Bytebase with the previous version using the restored data directory
0 commit comments