Backup and restore Splunk DB Connect version 3.10.0 or higher
Go through the given scenario to understand how to create a DB Connect backup and restore it.
Scenario:
- We have two servers,
AandB. - Splunk DB Connect is installed and configured in server
A. - We need to migrate Splunk DB Connect from server
AtoB.
Backup and restore:
- Install Splunk DB Connect in server
B. - Make sure all Splunk JDBC Add-ons present in server
Aare installed inB. - Backup the input's checkpoints from the KV Store in server
A:$SPLUNK_HOME/bin/splunk backup kvstore -collectionName dbx_db_input -archiveName <backup-name>. The backup file will be stored in$SPLUNK_HOME/var/lib/splunk/kvstorebackup/<backup-name>.tar.gz. - Copy the input's checkpoint backup to
$SPLUNK_HOME/var/lib/splunk/kvstorebackupin serverB. - Restore the input's checkpoints to the KV Store in server
B:$SPLUNK_HOME/bin/splunk restore kvstore -collectionName dbx_db_input -archiveName <backup-name>.tar.gz. - Backup the secrets from the KV Store in server
A:$SPLUNK_HOME/bin/splunk backup kvstore -collectionName secret -archiveName <backup-name>. The backup file will be stored in$SPLUNK_HOME/var/lib/splunk/kvstorebackup/<backup-name>.tar.gz. - Copy the secret's backup to
$SPLUNK_HOME/var/lib/splunk/kvstorebackupin serverB. - Restore the secrets to the KV Store in server
B:$SPLUNK_HOME/bin/splunk restore kvstore -collectionName secret -archiveName <backup-name>.tar.gz. - Stop Splunk.
- Copy each
*.conffiles from$SPLUNK_HOME/etc/apps/splunk_app_db_connect/localfrom serverAtoB. - Copy each
*.jarfrom$SPLUNK_HOME/etc/apps/splunk_app_db_connect/driversfrom serverAtoB. - Start Splunk.