Files
doris/docs/zh-CN/sql-reference/sql-statements/Data Manipulation/SHOW BACKUP.md

64 lines
2.4 KiB
Markdown

---
{
"title": "SHOW BACKUP",
"language": "zh-CN"
}
---
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
# SHOW BACKUP
## description
该语句用于查看 BACKUP 任务
语法:
SHOW BACKUP [FROM db_name]
说明:
1. Palo 中仅保存最近一次 BACKUP 任务。
2. 各列含义如下:
JobId: 唯一作业id
SnapshotName: 备份的名称
DbName: 所属数据库
State: 当前阶段
PENDING: 提交作业后的初始状态
SNAPSHOTING: 执行快照中
UPLOAD_SNAPSHOT:快照完成,准备上传
UPLOADING: 快照上传中
SAVE_META: 将作业元信息保存为本地文件
UPLOAD_INFO: 上传作业元信息
FINISHED: 作业成功
CANCELLED: 作业失败
BackupObjs: 备份的表和分区
CreateTime: 任务提交时间
SnapshotFinishedTime: 快照完成时间
UploadFinishedTime: 快照上传完成时间
FinishedTime: 作业结束时间
UnfinishedTasks: 在 SNAPSHOTING 和 UPLOADING 阶段会显示还未完成的子任务id
Status: 如果作业失败,显示失败信息
Timeout: 作业超时时间,单位秒
## example
1. 查看 example_db 下最后一次 BACKUP 任务。
SHOW BACKUP FROM example_db;
## keyword
SHOW, BACKUP