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 e77ee34 commit 9e5dfe3
Showing 1 changed file with 6 additions and 6 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 @@ -160,7 +160,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 @@ -222,7 +222,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 @@ -246,7 +246,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 @@ -260,6 +260,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 9e5dfe3

Please sign in to comment.