EmmyMiao87 opened a new issue #5298:
URL: https://github.com/apache/incubator-doris/issues/5298
# Background
Existing function
Only olap table backup is supported, and the name of the table to be backed
up must be manually declared, which is inconvenient for full database backup.
# Requirement
1. backup full database, data or metadata, partial table
2. backup an restore view, external table, related resources etc.
3. When restoring, overwrite all data in the existing table, if it does not
exist, create a new table directly
4. backup the entire database but only restores individual tables during
restore.
5. The backup support excludes some tables that are too large, and backs up
the others.
# API design
```
BACKUP SNAPSHOT [db_name].{snapshot_name}
TO 'repo_name'
[on clause]
[EXCLUDE (
'table_name' [partition (p1,...)]
)]
[properties (
"content" = "metadata_only|data_only"
)]
RESTORE SNAPSHOT [db_name].{snapshot_name}
TO 'repo_name'
[on clause]
[EXCLUDE (
'table_name' [partition (p1,...)]
)]
[properties (
"content" = "metadata_only|data_only"
)]
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]