Skip to content

Commit cb0f112

Browse files
committed
docs: update backup doc
1 parent aa0f597 commit cb0f112

File tree

2 files changed

+39
-12
lines changed

2 files changed

+39
-12
lines changed

content/docs/change-database/rollback-data-changes.md

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,48 @@ You can manually delete the data in `bbdataarchive` database/schema.
1414

1515
</HintBlock>
1616

17-
Prior backup is only feasible when meeting **any** of the following conditions:
17+
## Supported Databases
18+
19+
| Database | Prerequisites | Prior Backup | 1-click Rollback |
20+
| ---------- | ------------------------------------------------------------------------------------- | ------------ | ---------------- |
21+
| MySQL | Create a `bbdataarchive` **database** on the instance where your database is located. |||
22+
| PostgreSQL | Create a `bbdataarchive` **schema** on the database. |||
23+
| Oracle | Create a `bbdataarchive` **database** on the instance where your database is located. |||
24+
| SQL Server | Create a `bbdataarchive` **database** on the instance where your database is located. |||
25+
26+
## Supported Operations
27+
28+
We are working on removing more limitations preventing backup and 1-click rollback.
29+
30+
### Enhanced experience
31+
32+
<HintBlock type="info">
33+
34+
Applicable to `MySQL`.
35+
36+
</HintBlock>
37+
38+
Prior backup is feasible when meeting **any** of the following conditions:
39+
40+
1. The SQL size is less than 2M.
41+
42+
1-click rollback is feasible when meeting **any** of the following conditions:
43+
44+
1. The changed table has primary key.
45+
46+
### Classic experience
47+
48+
<HintBlock type="info">
49+
50+
Applicable to `PostgreSQL`, `Oracle`, `SQL Server`.
51+
52+
</HintBlock>
53+
54+
Prior backup is feasible when meeting **any** of the following conditions:
1855

1956
1. No more than 5 statements and every statement is either `UPDATE` or `DELETE`.
2057
1. All statements are `UPDATE` for the same table with `PRIMARY KEY` or `UNIQUE KEY` in `WHERE` clause.
2158

22-
| Database | Prerequisites | 1-click Rollback |
23-
| ---------- | ------------------------------------------------------------------------------------- | ---------------- |
24-
| MySQL | Create a `bbdataarchive` **database** on the instance where your database is located. ||
25-
| PostgreSQL | Create a `bbdataarchive` **schema** on the database. ||
26-
| Oracle | Create a `bbdataarchive` **database** on the instance where your database is located. ||
27-
| SQL Server | Create a `bbdataarchive` **database** on the instance where your database is located. ||
28-
2959
## Create backup
3060

3161
You can toggle **Prior Backup** switch before or after creating the issue.

content/docs/reference/error-code/advisor.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,4 @@ The comment missing classification. Check [Comment classification](/docs/securit
390390

391391
<h3 id="2001">2001 - Unable to create backup</h3>
392392

393-
[Prior backup](/docs/change-database/rollback-data-changes) is only feasible when meeting **any** of the following conditions:
394-
395-
1. No more than 5 statements and every statement is either `UPDATE` or `DELETE`.
396-
1. All statements are `UPDATE` for the same table with `PRIMARY KEY` or `UNIQUE KEY` in `WHERE` clause.
393+
See [Supported backup operations](/docs/change-database/rollback-data-changes/#supported-operations).

0 commit comments

Comments
 (0)