Skip to content

[Feature Request]: Infinity database backup and restore function. #1183

@JinHai-CN

Description

@JinHai-CN

Describe the feature you'd like

We need tools to backup and restore infinity data to avoid data recovery after fatal data errors.

Describe implementation you've considered

Introduce following command or API to support backup and restore data.

  1. CREATE TABLE SNAPSHOT ON {table_name};
  2. CREATE DATABASE SNAPSHOT ON {database_name};
  3. CREATE FULL SNAPSHOT;
  4. SHOW SNAPSHOTS;
  5. SHOW TABLE SNAPSHOTS;
  6. SHOW DATABASE SNAPSHOTS;
  7. SHOW FULL SNAPSHOTS;
  8. SHOW SNAPSHOT {snapshot_name};
  9. DELETE SNAPSHOTS {snapshot_name};
  10. RECOVER FROM SNAPSHOT {snapshot_name};

Each snapshot means a file which includes all information of the snapshot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions