Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup and Restore support view and external table #5298

Closed
EmmyMiao87 opened this issue Jan 26, 2021 · 0 comments · Fixed by #5299 or #5314
Closed

Backup and Restore support view and external table #5298

EmmyMiao87 opened this issue Jan 26, 2021 · 0 comments · Fixed by #5299 or #5314
Labels
area/backup Issues of PRS related to backup and restore kind/feature Categorizes issue or PR as related to a new feature.

Comments

@EmmyMiao87
Copy link
Contributor

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"

)]
@EmmyMiao87 EmmyMiao87 added kind/feature Categorizes issue or PR as related to a new feature. area/backup Issues of PRS related to backup and restore labels Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backup Issues of PRS related to backup and restore kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
1 participant