1
0
Fork 0

Update RESTORE_FROM_SQLITE.md

master
Philip O'Toole 8 years ago committed by GitHub
parent 31c1b3964b
commit 4c5c241d97

@ -1,6 +1,6 @@
# Restoring from a SQLite dump file
rqlite supports loading a node directly from a SQLite dump file. This is a fast and efficient manner to bootstrap a system from an existing SQLite database, or to restore from an existing [node backup](https://github.com/rqlite/rqlite/blob/master/doc/BACKUPS.md). An example restore is shown below.
rqlite supports loading a node directly from a SQLite dump file. This is a fast and efficient manner to initialize a system from an existing SQLite database, or to restore from an existing [node backup](https://github.com/rqlite/rqlite/blob/master/doc/BACKUPS.md). An example restore is shown below.
## Example
The following example shows a trivial database being generated by `sqlite3`, dumped to a file, and then loaded into a rqlite node listening on localhost.
@ -26,4 +26,4 @@ $ rqlite
+----+-------+
```
The behavior of the restore operation when data already exists on the node is undefined. Also, please note that SQLite dump files normally contain a command to disable Foreign Key constraints. If you wish to re-enable Foreign Key constraints after the load operation completes, check out [this documentation](https://github.com/rqlite/rqlite/blob/master/doc/FOREIGN_KEY_CONSTRAINTS.md).
The behavior of the restore operation when data already exists on the node is undefined. Also, please note that SQLite dump files normally contain a command to disable Foreign Key constraints. If you wish to re-enable Foreign Key constraints after the load operation completes, check out [this documentation](https://github.com/rqlite/rqlite/blob/master/doc/FOREIGN_KEY_CONSTRAINTS.md).

Loading…
Cancel
Save