Skip to main content

How to backup a dqlite cluster

This guide shows you how to create a backup from a running cluster using dqlite-utils.

Steps

  1. Type and run dqlite-utils --dir /path/to/dqlite/dir. You will see the repl start.
  2. Type and run the .open command. You will see the ‘open’ sub-shell open at the ‘latest’ data version.
  3. 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.

Last updated 15 hours ago. Help improve this document in the forum.