# Cluster Operations

# Create Snapshot (for backups)

Creates a point-in-time snapshot of a Typesense node's state and data in the specified directory.

You can then backup the snapshot directory that gets created and later restore it as a data directory, as needed.

# Sample Response

# Definition

POST ${TYPESENSE_HOST}/operations/snapshot

# Arguments

Parameter Required Description
snapshot_path yes The directory on the server where the snapshot should be saved.

# Re-elect Leader

Triggers a follower node to initiate the raft voting process, which triggers leader re-election.

The follower node that you run this operation against will become the new leader, once this command succeeds.

# Sample Response

# Definition

POST ${TYPESENSE_HOST}/operations/vote

This documentation site is open source. Found an issue? Edit this page (opens new window) and send us a Pull Request.

For AI Agents: View an easy-to-parse, token-efficient Markdown version of this page. You can also replace .html with .md in any docs URL. For paths ending in /, append README.md to the path.

Last Updated: 6/14/2021, 5:46:29 PM