Skip to content

Commit

Permalink
Update backup.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KassieZ authored Jan 2, 2025
1 parent 98e0f47 commit e77ee34
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ under the License.

For concepts related to backup, please refer to [Backup and Restore](./overview.md). This guide provides the steps to create a Repository and back up data.

## 1. Create Repository
## Step 1. Create Repository

<!--
suites/backup_restore/test_create_and_drop_repository.groovy
Expand Down Expand Up @@ -56,7 +56,7 @@ PROPERTIES

### Option 2: Create Repository on Azure

**Not supported in 2.1.**
**Not supported in Doris 2.1.**

### Option 3: Create Repository on GCP

Expand Down Expand Up @@ -139,7 +139,7 @@ PROPERTIES
- Replace `prefix_path` with the actual path.
- Provide your HDFS endpoint and username.

## 2. Backup
## Step 2. Backup

Refer to the following statements to back up databases, tables, or partitions. For detailed usage, please refer to [Backup](../../../sql-manual/sql-statements/data-modification/backup-and-restore/BACKUP.md).

Expand Down Expand Up @@ -201,7 +201,7 @@ EXCLUDE
);
```

## 3. View Recent Backup Job Execution Status
## Step 3. View Recent Backup Job Execution Status

The following SQL statement can be used to view the execution status of recent backup jobs.

Expand All @@ -225,7 +225,7 @@ mysql> show BACKUP\G;
1 row in set (0.01 sec)
```

## 4. View Existing Backups in Repository
## Step 4. View Existing Backups in Repository

The following SQL statement can be used to view existing backups in a Repository named `example_repo`, where the Snapshot column is the snapshot label, and the Timestamp is the timestamp.

Expand All @@ -239,6 +239,6 @@ mysql> SHOW SNAPSHOT ON example_repo;
1 row in set (0.15 sec)
```

## 5. Cancel Backup (if necessary)
## Step 5. Cancel Backup (if necessary)

You can use `CANCEL BACKUP FROM db_name;` to cancel a backup task in a database. For more specific usage, refer to [Cancel Backup](../../../sql-manual/sql-statements/data-modification/backup-and-restore/CANCEL-BACKUP.md).
You can use `CANCEL BACKUP FROM db_name;` to cancel a backup task in a database. For more specific usage, refer to [Cancel Backup](../../../sql-manual/sql-statements/data-modification/backup-and-restore/CANCEL-BACKUP.md).

0 comments on commit e77ee34

Please sign in to comment.