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
Copy file name to clipboardExpand all lines: br/br-log-architecture.md
+32-26Lines changed: 32 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,18 +108,24 @@ Log backup generates the following types of files:
108
108
.
109
109
├── v1
110
110
│ ├── backupmeta
111
-
│ │ ├── {min_restored_ts}-{uuid}.meta
112
-
│ │ ├── {checkpoint}-{uuid}.meta
111
+
│ │ ├── ...
112
+
│ │ └── {resolved_ts}-{uuid}.meta
113
113
│ ├── global_checkpoint
114
-
│ │ ├── {store_id}.ts
115
-
│ ├── {date}
116
-
│ │├── {hour}
117
-
│ ││├── {store_id}
118
-
│ │││ ├── {min_ts}-{uuid}.log
119
-
│ │││├── {min_ts}-{uuid}.log
120
-
├── v1_stream_truncate_safepoint.txt
114
+
│ │ └── {store_id}.ts
115
+
│ └── {date}
116
+
│ └── {hour}
117
+
│ └── {store_id}
118
+
│ ├── ...
119
+
│ └── {min_ts}-{uuid}.log
120
+
└── v1_stream_truncate_safepoint.txt
121
121
```
122
122
123
+
Explanation of the backup file directory structure:
124
+
125
+
-`backupmeta`: stores backup metadata. The `resolved_ts` in the filename indicates the backup progress, meaning that data before this TSO has been fully backed up. However, note that this TSO only reflects the progress of certain shards.
126
+
-`global_checkpoint`: represents the global backup progress. It records the latest point in time to which data can be restored using `br restore point`.
127
+
-`{date}/{hour}`: stores backup data for the corresponding date and hour. When cleaning up storage, always use `br log truncate` instead of manually deleting data. This is because the metadata references the data in this directory, and manual deletion might lead to restore failures or data inconsistencies after restore.
128
+
123
129
The following is an example:
124
130
125
131
```
@@ -129,24 +135,24 @@ The following is an example:
0 commit comments