---
title: How to backup a dqlite cluster
description: Canonical makes open source secure, reliable and easy to use, providing
  support for Ubuntu and a portfolio of enterprise-grade technologies. Founded in
  2004, Canonical operates globally with team members in over 80 countries.
url: https://canonical.com/dqlite/docs/howto/backup-a-dqlite-cluster?format=md
---

*Submit*

# How to backup a dqlite cluster

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

## [Steps](https://canonical.com/dqlite/docs/howto/backup-a-dqlite-cluster?format=md#p-627-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'`. The specified path will now contain the dqlite state from the moment when `dqlite-utils` was opened.

---

[Previous

Debug and operate](https://canonical.com/dqlite/docs/howto/debug-and-operate)
[Next

Check cluster health](https://canonical.com/dqlite/docs/howto/check-cluster-health)

Last updated 2 months ago. [Help improve this document in the forum](https://discourse.dqlite.io/t/how-to-backup-a-dqlite-cluster/560).
