Transfer of Self Hosted Baserow instance to another server

I need some guide on how I can transfer my self-hosted instance from my current server to another server, with all the data, table configurations and relationships and applications. I installed it using Docker and I am running it on ubuntu OS.

Hello @Steve223 and welcome to the Baserow community! :wave:

Here’s the documentation: Install with Docker :slightly_smiling_face:

Soon, we’ll also release this feature: Allow importing and exporting to the serialized Baserow format using the API and web-frontend (#1896) · Issues · Baserow / baserow · GitLab. It will allow for an easier way to move data between instances.

1 Like

In the meantime, it’s already possible to transfer the databases and application from one specific workspace to the other using a CLI command if the documentation mentioned by @olgatrykush doesn’t fit your needs.

You would need to gain access to the server that runs the Docker container, and from there execute the following commands. The workspace ID can be found by clicking on the three dots next to the workspace, and then the number between brackers. Below I assume that the container is named baserow.

To export the databases and applications in a workspace:

  • Run docker exec baserow ./baserow.sh backend-cmd manage export_workspace_applications WORKSPACE_ID_THAT_MUST_BE_EXPORTED to make the export.
  • Use docker cp baserow:/baserow/backend/workspace_WORKSPACE_ID_THAT_MUST_BE_EXPORTED.json workspace_WORKSPACE_ID_THAT_MUST_BE_EXPORTED.json ./workspace_WORKSPACE_ID_THAT_MUST_BE_EXPORTED.json to copy the database user files to the host.
  • Use docker cp baserow:/baserow/backend/workspace_WORKSPACE_ID_THAT_MUST_BE_EXPORTED.zip workspace_WORKSPACE_ID_THAT_MUST_BE_EXPORTED.json ./workspace_WORKSPACE_ID_THAT_MUST_BE_EXPORTED.zip to copy the user files to the host.

To import the exported database and applications in another instance.

  • Use docker cp workspace_WORKSPACE_ID_THAT_MUST_BE_EXPORTED.json baserow:/baserow/backend/workspace_WORKSPACE_ID_THAT_MUST_BE_EXPORTED.zip to copy the JSON file into your container.
  • Use docker cp workspace_WORKSPACE_ID_THAT_MUST_BE_EXPORTED.json baserow:/baserow/backend/workspace_WORKSPACE_ID_THAT_MUST_BE_EXPORTED.zip to copy the zip file into your container.
  • Run docker exec baserow ./baserow.sh backend-cmd manage import_workspace_applications WORKSPACE_ID_WHERE_THE_APPLICATIONS_MUST_BE_IMPORTED workspace_WORKSPACE_ID_THAT_MUST_BE_EXPORTED to import the data.
1 Like

@olgatrykush and @bram thank you very much. This was very helpful.