logto icon indicating copy to clipboard operation
logto copied to clipboard

feature request: Allow importing/exporting data through json file

Open mikarty opened this issue 3 years ago • 2 comments

What problem did you meet?

Allow importing/exporting data through json file

Describe what you'd like Logto to have

  • Being able to export existing data from logto into json file

  • Being able to import data into logto from json file

This could be beneficial when for example spinning up logto instance locally through docker and being able to provide versioned pre-configured data

Example from keycloak - https://www.keycloak.org/server/importExport

mikarty avatar Aug 06 '22 19:08 mikarty

thanks @mikarty! @wangsijie would you like to take a look?

gao-sun avatar Aug 07 '22 15:08 gao-sun

Currently, Logto stores all data in a single source: database, the default engine is postgres. So import/export can be achived by db's import/export which is supported by most of the db clients and cloud services.

But still, I'll take a deep research on this with the team, and post updates in this thread once completed.

Thanks for the idea @mikarty

wangsijie avatar Aug 08 '22 06:08 wangsijie

@mikarty the migration feature is ready: https://docs.logto.io/docs/recipes/migrations/

wangsijie avatar Mar 13 '24 01:03 wangsijie

Feel free to reopen this issue at any time!

wangsijie avatar Mar 13 '24 01:03 wangsijie