Hi everyone! I'm working on a backup/disaster rec...
# community-help
l
Hi everyone! I'm working on a backup/disaster recovery document for our self-hosted Typesense cluster and have a couple questions: 1. Is there an endpoint we can call to find out which node is the leader? The /snapshot endpoint doesn't tell us which node writes the file. 2. Does the snapshot include all the API Keys we have created? 3. When in a disaster recovery scenario, where do we copy the content that we get from the snapshot? 4. Are there any steps needed other than scaling the cluster down to a single node, copying the backup files, and restarting?
j
Great set of questions! 1. /debug will return a field called state. On the leader, this field will have a value of
1
2. Yes, snapshot will include all the API Keys created via the /keys endpoint (but not the bootstrap API key you specify in the config file / command line) 3. You want to set point Typesense’s data dir to the directory which has the snapshot 4. That’s pretty much it
❤️ 1