How to backup a dqlite cluster
This guide shows you how to create a backup from a running cluster using dqlite-utils.
Steps
- Type and run
dqlite-utils --dir /path/to/dqlite/dir. You will see the repl start. - Type and run the
.opencommand. You will see the ‘open’ sub-shell open at the ‘latest’ data version. - Type and run
VACUUM INTO '/path/to/backup.db'.
/path/to/backup.db now contains the dqlite state from the moment when dqlite-utils was opened.