From 243ef64f0aea88c7d586c16167ae5ae278443b62 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Mon, 1 Jan 2024 22:33:40 -0500 Subject: [PATCH] vault backup: 2024-01-01 22:33:40 --- Databases/SurrealDB/Command line interface.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Databases/SurrealDB/Command line interface.md b/Databases/SurrealDB/Command line interface.md index a75711b..d5839ee 100644 --- a/Databases/SurrealDB/Command line interface.md +++ b/Databases/SurrealDB/Command line interface.md @@ -17,10 +17,12 @@ Option two I'm still figuring out. I just export it once I'm done and then impor *- I also use Docker (or some other OCI runtime like Podman) also. -* ## Importing an existing database -Imports deal with SurQL files, similar to SQL files, filled with statements that SurrealDB will read and be ready when you start the database. +Imports deal with SurQL files, similar to SQL files, filled with statements that SurrealDB will read and be ready when you start the database -`surreal import -e http://127.0.0.1:8002 --user root --pass root --ns test --db test export.surql` +Example: `surreal import -e http://127.0.0.1:8002 --user root --pass root --ns test --db test export.surql` ## Exporting a running database -Exporting throws everything into a SurQL file, used for analysis +Exporting throws everything into a SurQL file, used for analysis and importing (for later!) + +Example: ``