SurrealDB Docs Logo

Enter a search query

Migrating data from SurrealDB to Surreal Cloud

Surreal Cloud is a hosted version of SurrealDB, providing a fully managed, scalable, and secure database solution. This guide will help you migrate your existing SurrealDB Instance to Surreal Cloud.

Exporting and importing data

  1. Export your current data as a .surql (SurrealQL) file. You can do this using the surreal export command in the terminal:
# Example export command to export data to a file called `export.surql` in the downloads directory.
surreal export --conn <connection-url> --user root --pass root --ns test --db test downloads/export.surql
  1. This will create a file called export.surql in the current directory.

  2. You can now import this file into your Surreal Cloud Instance.

surreal import --conn <connection-url> --user root --pass root --ns test --db test downloads/export.surql

On this page

© SurrealDB GitHub Discord Community Cloud Features Releases Install