Migrating data from SurrealDB to SurrealDB Cloud
SurrealDB 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 SurrealDB Cloud .
Exporting and importing data
- Export your current data as a
.surql (SurrealQL) file. You can do this using the surreal export command in the terminal:
surreal export --conn <connection-url> --user root --pass secret --ns test --db test downloads/export.surql
This will create a file called export.surql in the current directory.
You can now import this file into your SurrealDB Cloud Instance.
surreal import --conn <connection-url> --user root --pass secret --ns test --db test downloads/export.surql