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

DB import/export #102

Open
richard-epsilla opened this issue Dec 23, 2023 · 0 comments
Open

DB import/export #102

richard-epsilla opened this issue Dec 23, 2023 · 0 comments

Comments

@richard-epsilla
Copy link
Contributor

Describe the feature
Step 1: docker support

  • Add a new API to export db as a tarball and download to local:
GET /api/<DBName>/export
  • Add a new API to import db from a tarball, post as payload:
POST \
     -H "Content-Type: multipart/form-data" \
     -F "file=@/path/to/your/tarball" \
     -F "json={\"name\": \"the DB name\", \"path\": \"path/on/docker/disk\"};type=application/json" \
     /api/import

Step 2. cloud support

  • TBD

Motivation and use case

  • To support easy db migration between docker images

Additional context

  • to be filled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant