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
To read data from read-only nodes when backing up cluster data, you can specify the `--replica-read-label` option in the br command line. Note that when running the following command in shell, you need to use single quotes to wrap the label to prevent `$` from being parsed.
128
128
129
129
```shell
130
-
br backup full ... --replica-read-label '$mode:readonly'
130
+
tiup br backup full ... --replica-read-label '$mode:readonly'
Copy file name to clipboardExpand all lines: br/backup-and-restore-storages.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ By default, BR sends a credential to each TiKV node when using Amazon S3, GCS, o
19
19
Note that this operation is not applicable to cloud environments. If you use IAM Role authorization, each node has its own role and permissions. In this case, you need to configure `--send-credentials-to-tikv=false` (or `-c=0` in short) to disable sending credentials:
20
20
21
21
```bash
22
-
./br backup full -c=0 -u pd-service:2379 --storage 's3://bucket-name/prefix'
22
+
tiup br backup full -c=0 -u pd-service:2379 --storage 's3://bucket-name/prefix'
23
23
```
24
24
25
25
If you back up or restore data using the [`BACKUP`](/sql-statements/sql-statement-backup.md) and [`RESTORE`](/sql-statements/sql-statement-restore.md) statements, you can add the `SEND_CREDENTIALS_TO_TIKV = FALSE` option:
@@ -50,14 +50,14 @@ This section provides some URI examples by using `external` as the `host` parame
@@ -128,7 +128,7 @@ It is recommended that you configure access to S3 using either of the following
128
128
Associate an IAM role that can access S3 with EC2 instances where the TiKV and BR nodes run. After the association, BR can directly access the backup directories in S3 without additional settings.
129
129
130
130
```shell
131
-
br backup full --pd "${PD_IP}:2379" \
131
+
tiup br backup full --pd "${PD_IP}:2379" \
132
132
--storage "s3://${host}/${path}"
133
133
```
134
134
@@ -195,7 +195,7 @@ You can configure the account used to access GCS by specifying the access key. I
Copy file name to clipboardExpand all lines: br/br-incremental-guide.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: TiDB Incremental Backup and Restore Guide
3
-
summary: Incremental data is the differentiated data between starting and end snapshots, along with DDLs. It reduces backup volume and requires setting `tidb_gc_life_time` for incremental backup. Use `br backup` with `--lastbackupts` for incremental backup and ensure all previous data is restored before restoring incremental data.
3
+
summary: Incremental data is the differentiated data between starting and end snapshots, along with DDLs. It reduces backup volume and requires setting `tidb_gc_life_time` for incremental backup. Use `tiup br backup` with `--lastbackupts` for incremental backup and ensure all previous data is restored before restoring incremental data.
4
4
---
5
5
6
6
# TiDB Incremental Backup and Restore Guide
@@ -13,7 +13,7 @@ Incremental data of a TiDB cluster is differentiated data between the starting s
13
13
14
14
## Back up incremental data
15
15
16
-
To back up incremental data, run the `br backup` command with **the last backup timestamp**`--lastbackupts` specified. In this way, br command-line tool automatically backs up incremental data generated between `lastbackupts` and the current time. To get `--lastbackupts`, run the `validate` command. The following is an example:
16
+
To back up incremental data, run the `tiup br backup` command with **the last backup timestamp**`--lastbackupts` specified. In this way, br command-line tool automatically backs up incremental data generated between `lastbackupts` and the current time. To get `--lastbackupts`, run the `validate` command. The following is an example:
Copy file name to clipboardExpand all lines: br/br-pitr-guide.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Before you back up or restore data using the br command-line tool (hereinafter r
19
19
> - The following examples assume that Amazon S3 access keys and secret keys are used to authorize permissions. If IAM roles are used to authorize permissions, you need to set `--send-credentials-to-tikv` to `false`.
20
20
> - If other storage systems or authorization methods are used to authorize permissions, adjust the parameter settings according to [Backup Storages](/br/backup-and-restore-storages.md).
21
21
22
-
To start a log backup, run `br log start`. A cluster can only run one log backup task each time.
22
+
To start a log backup, run `tiup br log start`. A cluster can only run one log backup task each time.
The snapshot backup can be used as a method of full backup. You can run `br backup full` to back up the cluster snapshot to the backup storage according to a fixed schedule (for example, every 2 days).
51
+
The snapshot backup can be used as a method of full backup. You can run `tiup br backup full` to back up the cluster snapshot to the backup storage according to a fixed schedule (for example, every 2 days).
To restore the cluster to any point in time within the backup retention period, you can use `br restore point`. When you run this command, you need to specify the **time point you want to restore**, **the latest snapshot backup data before the time point**, and the **log backup data**. BR will automatically determine and read data needed for the restore, and then restore these data to the specified cluster in order.
60
+
To restore the cluster to any point in time within the backup retention period, you can use `tiup br restore point`. When you run this command, you need to specify the **time point you want to restore**, **the latest snapshot backup data before the time point**, and the **log backup data**. BR will automatically determine and read data needed for the restore, and then restore these data to the specified cluster in order.
As described in the [Usage Overview of TiDB Backup and Restore](/br/br-use-overview.md):
82
82
83
-
To perform PITR, you need to restore the full backup before the restore point, and the log backup between the full backup point and the restore point. Therefore, for log backups that exceed the backup retention period, you can use `br log truncate` to delete the backup before the specified time point. **It is recommended to only delete the log backup before the full snapshot**.
83
+
To perform PITR, you need to restore the full backup before the restore point, and the log backup between the full backup point and the restore point. Therefore, for log backups that exceed the backup retention period, you can use `tiup br log truncate` to delete the backup before the specified time point. **It is recommended to only delete the log backup before the full snapshot**.
84
84
85
85
The following steps describe how to clean up backup data that exceeds the backup retention period:
86
86
@@ -100,7 +100,7 @@ The following steps describe how to clean up backup data that exceeds the backup
100
100
4. Delete snapshot data earlier than the snapshot backup `FULL_BACKUP_TS`:
0 commit comments