Hello community members!
We are happy to share our progress on adding a data import and export feature with a beta release today.
For developers and DevOps engineers who want to manage the data of their Strapi projects, the export/import allows you to operate backup & restore of your Strapi project data without acting manually and directly into the database.
In your Strapi project folder, launching from the CLI the command strapi export
, an archive is produced containing all the existing data. Exports are automatically encrypted and compressed. You can disable the encryption and compression with the --no-encrypt
and --no-compress
options.
Once you have an exported archive, you can launch from the CLI the command strapi import -f <path_to_the_exported archive-with-file-extension>
that will perform a restore of all your data.
In the very near future, we will provide a transfer command to directly migrate your data from your local instance of Strapi to a remote instance or vice versa.
You can test the feature by creating a project using npx create-strapi-app@4.6.0-beta.1 my-project --quickstart
The feature also includes beta documentation.
We would love to exceed your expectations with this feature. Please let us know what you think about it in this tread