Exporting and importing data
Export your current data as a
.surql(SurrealQL) file. You can do this using thesurreal exportcommand 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 secret --ns main --db main downloads/export.surqlThis will create a file called
export.surqlin the current directory.You can now import this file into your SurrealDB Cloud Instance.
surreal import --conn <connection-url> --user root --pass secret --ns main --db main downloads/export.surql