We have an instance where KV store is not running and we're looking to clean the whole thing out. However, we would like to see if we're able to keep the data.
So, my question is; is there any other way to do a backup of KV store data than using the "splunk backup kvstore" command?
Hey @svendby90,
There is an alternate way as well to take a backup of the kvstore other than the backup command. Steps are as below:
$SPLUNK_HOME/bin/splunk stop
tar -cvzf <destination_path>/backup.tgz $SPLUNK_HOME/var/lib/splunk/kvstore
$SPLUNK_HOME/bin/splunk start
Hi
here is one old discussion how you could do it online without service break https://community.splunk.com/t5/Splunk-Enterprise/Are-there-any-automated-scripts-to-back-up-the-kvs...
r. Ismo
Hey @svendby90,
There is an alternate way as well to take a backup of the kvstore other than the backup command. Steps are as below:
$SPLUNK_HOME/bin/splunk stop
tar -cvzf <destination_path>/backup.tgz $SPLUNK_HOME/var/lib/splunk/kvstore
$SPLUNK_HOME/bin/splunk start
How do you restore from this method? If I clean the KVstore after backing up like this, won't untarring over the cleaned files just put the system back in the state it was, uncleaned? Or even worse, would it break mongo?