File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,8 +84,9 @@ exec > /tmp/splunkconf-restore-debug.log 2>&1
8484# 20251219 add failure log for backup in disk space situation at first start in order to fill dashboard from start with correct info
8585# 20260105 update time logging format
8686# 20260105 rework logging, rework case for disk space to really call splunkconf-backup to produce better error message
87+ # 20260506 add more info logging at end of restore
8788
88- VERSION=" 20260105b "
89+ VERSION=" 20260506a "
8990
9091# ##### BEGIN default parameters
9192# dont change here, use the configuration file to override them
@@ -633,8 +634,10 @@ elif ([[ "$MODE" == "0" ]] || [[ "$MODE" == "kvdump" ]] || [[ "$MODE" == "kvauto
633634 # increase here if needed (ie take more time !)
634635 until [[ $COUNTER -lt 1 || -n " $RES " ]]; do
635636 RES=` curl --silent -k --connect-timeout $CURLCONNECTTIMEOUT --max-time $CURLMAXTIME https://${MGMTURL} /services/kvstore/status --header " Authorization: Splunk ${sessionkey} " | grep backupRestoreStatus | grep -i Ready`
636- # echo_log " RES=$RES"
637+ debug_log " COUNTER= $COUNTER RES=$RES "
637638 echo_log " action=restorebackup type=$TYPE COUNTER=$COUNTER $MESSVER $MESS1 kvbackupmode=$kvbackupmode "
639+ RES2=` curl --silent -k --connect-timeout $CURLCONNECTTIMEOUT --max-time $CURLMAXTIME https://${MGMTURL} /services/kvstore/backup/restore -X post --header " Authorization: Splunk ${sessionkey} " -d" archiveName=${KVARCHIVE} " `
640+ debug_log " in restore loop restore KVDUMP RESTORE FULL RES=$RES , RES2=${RES2} "
638641 let COUNTER-=1
639642 sleep 30
640643 done
You can’t perform that action at this time.
0 commit comments